pub struct ServerInfo { /* private fields */ }Expand description
A struct representing a server info for the serverinfo request.
Implementations§
Source§impl ServerInfo
impl ServerInfo
Sourcepub fn last_online(&self) -> Option<Date<Utc>>
pub fn last_online(&self) -> Option<Date<Utc>>
Get a reference to the server info’s last online.
Sourcepub fn players_count(&self) -> Option<&PlayersCount>
pub fn players_count(&self) -> Option<&PlayersCount>
Get a reference to the server info’s players count.
Sourcepub fn friendly_fire(&self) -> Option<bool>
pub fn friendly_fire(&self) -> Option<bool>
Get a reference to the server info’s friendly fire.
Sourcepub fn auto_suppress(&self) -> Option<bool>
pub fn auto_suppress(&self) -> Option<bool>
Get a reference to the server info’s auto suppress.
Sourcepub fn last_online_mut(&mut self) -> &mut Option<Date<Utc>>
pub fn last_online_mut(&mut self) -> &mut Option<Date<Utc>>
Get a mutable reference to the server info’s last online.
Sourcepub fn players_count_mut(&mut self) -> &mut Option<PlayersCount>
pub fn players_count_mut(&mut self) -> &mut Option<PlayersCount>
Get a mutable reference to the server info’s players count.
Sourcepub fn players_mut(&mut self) -> &mut Option<Vec<Player>>
pub fn players_mut(&mut self) -> &mut Option<Vec<Player>>
Get a mutable reference to the server info’s players.
Sourcepub fn info_mut(&mut self) -> &mut Option<String>
pub fn info_mut(&mut self) -> &mut Option<String>
Get a mutable reference to the server info’s info.
Sourcepub fn friendly_fire_mut(&mut self) -> &mut Option<bool>
pub fn friendly_fire_mut(&mut self) -> &mut Option<bool>
Get a mutable reference to the server info’s friendly fire.
Sourcepub fn whitelist_mut(&mut self) -> &mut Option<bool>
pub fn whitelist_mut(&mut self) -> &mut Option<bool>
Get a mutable reference to the server info’s whitelist.
Sourcepub fn modded_mut(&mut self) -> &mut Option<bool>
pub fn modded_mut(&mut self) -> &mut Option<bool>
Get a mutable reference to the server info’s modded.
Sourcepub fn mods_mut(&mut self) -> &mut Option<u64>
pub fn mods_mut(&mut self) -> &mut Option<u64>
Get a mutable reference to the server info’s mods.
Sourcepub fn suppress_mut(&mut self) -> &mut Option<bool>
pub fn suppress_mut(&mut self) -> &mut Option<bool>
Get a mutable reference to the server info’s suppress.
Sourcepub fn auto_suppress_mut(&mut self) -> &mut Option<bool>
pub fn auto_suppress_mut(&mut self) -> &mut Option<bool>
Get a mutable reference to the server info’s auto suppress.
Trait Implementations§
Source§impl Clone for ServerInfo
impl Clone for ServerInfo
Source§fn clone(&self) -> ServerInfo
fn clone(&self) -> ServerInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ServerInfo
impl Default for ServerInfo
Source§fn default() -> ServerInfo
fn default() -> ServerInfo
Source§impl From<RawServerInfo> for ServerInfo
impl From<RawServerInfo> for ServerInfo
Source§fn from(raw: RawServerInfo) -> Self
fn from(raw: RawServerInfo) -> Self
Source§impl From<ServerInfo> for RawServerInfo
Available on crate feature raw only.
impl From<ServerInfo> for RawServerInfo
raw only.