pub struct ServerPlayers {
pub max: u32,
pub online: u32,
pub sample: Option<Vec<ServerPlayer>>,
}
Expand description
Contains information about the currently online players.
Fields§
§max: u32
The configured maximum number of players for the server.
online: u32
The number of players currently online.
sample: Option<Vec<ServerPlayer>>
An optional list of player information for currently online players.
Trait Implementations§
Source§impl Debug for ServerPlayers
impl Debug for ServerPlayers
Source§impl<'de> Deserialize<'de> for ServerPlayers
impl<'de> Deserialize<'de> for ServerPlayers
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
Auto Trait Implementations§
impl Freeze for ServerPlayers
impl RefUnwindSafe for ServerPlayers
impl Send for ServerPlayers
impl Sync for ServerPlayers
impl Unpin for ServerPlayers
impl UnwindSafe for ServerPlayers
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