pub struct RawServerInfo {
pub id: u64,
pub port: u16,
pub last_online: Option<String>,
pub players_count: Option<String>,
pub players: Option<Vec<RawPlayer>>,
pub info: Option<String>,
pub friendly_fire: Option<bool>,
pub whitelist: Option<bool>,
pub modded: Option<bool>,
pub mods: Option<u64>,
pub suppress: Option<bool>,
pub auto_suppress: Option<bool>,
}
Expand description
A struct representing a raw server info.
Fields§
§id: u64
§port: u16
§last_online: Option<String>
§players_count: Option<String>
§players: Option<Vec<RawPlayer>>
§info: Option<String>
§friendly_fire: Option<bool>
§whitelist: Option<bool>
§modded: Option<bool>
§mods: Option<u64>
§suppress: Option<bool>
§auto_suppress: Option<bool>
Trait Implementations§
Source§impl Clone for RawServerInfo
impl Clone for RawServerInfo
Source§fn clone(&self) -> RawServerInfo
fn clone(&self) -> RawServerInfo
Returns a duplicate 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<'de> Deserialize<'de> for RawServerInfo
impl<'de> Deserialize<'de> for RawServerInfo
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 From<RawServerInfo> for ServerInfo
impl From<RawServerInfo> for ServerInfo
Source§fn from(raw: RawServerInfo) -> Self
fn from(raw: RawServerInfo) -> Self
Converts to this type from the input type.
Source§impl From<ServerInfo> for RawServerInfo
impl From<ServerInfo> for RawServerInfo
Source§fn from(server_info: ServerInfo) -> Self
fn from(server_info: ServerInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RawServerInfo
impl RefUnwindSafe for RawServerInfo
impl Send for RawServerInfo
impl Sync for RawServerInfo
impl Unpin for RawServerInfo
impl UnwindSafe for RawServerInfo
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