Struct battlebit_api::ServerData
source · pub struct ServerData { /* private fields */ }Expand description
Data of a single server
Implementations§
source§impl ServerData
impl ServerData
Auto-generated by derive_getters::Getters.
sourcepub fn player_count(&self) -> &u8
pub fn player_count(&self) -> &u8
The amount of players currently playing on this server.
sourcepub fn queued_player_count(&self) -> &u16
pub fn queued_player_count(&self) -> &u16
The amount of players currently in queue to join this server.
sourcepub fn max_players(&self) -> &u8
pub fn max_players(&self) -> &u8
The maximum amount of players that can be on this server.
sourcepub fn is_official(&self) -> &bool
pub fn is_official(&self) -> &bool
Whether or not this server is official.
sourcepub fn has_password(&self) -> &bool
pub fn has_password(&self) -> &bool
Whether or not this server has a password.
sourcepub fn anti_cheat(&self) -> &AntiCheat
pub fn anti_cheat(&self) -> &AntiCheat
The type of anticheat used on this server. See AntiCHeat for more info.
source§impl ServerData
impl ServerData
sourcepub fn has_unknown(&self) -> bool
pub fn has_unknown(&self) -> bool
Small check if this ServerData has Unknown fields.
Mostly used by me to check if this API client is outdated.
Trait Implementations§
source§impl Clone for ServerData
impl Clone for ServerData
source§fn clone(&self) -> ServerData
fn clone(&self) -> ServerData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ServerData
impl Debug for ServerData
source§impl<'de> Deserialize<'de> for ServerData
impl<'de> Deserialize<'de> for ServerData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ServerData> for ServerData
impl PartialEq<ServerData> for ServerData
source§fn eq(&self, other: &ServerData) -> bool
fn eq(&self, other: &ServerData) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ServerData
impl Serialize for ServerData
impl StructuralPartialEq for ServerData
Auto Trait Implementations§
impl RefUnwindSafe for ServerData
impl Send for ServerData
impl Sync for ServerData
impl Unpin for ServerData
impl UnwindSafe for ServerData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more