pub struct Players {
pub max: u32,
pub online: u32,
pub sample: Option<Vec<Sample>>,
}
Expand description
Struct that stores information about players on the server.
Not intended to be used directly, but only as a part of StatusResponse
.
Fields§
§max: u32
The maximum number of players allowed on the server.
online: u32
The number of players currently online.
sample: Option<Vec<Sample>>
A listing of some online Players. See Sample for more information.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Players
impl<'de> Deserialize<'de> for Players
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 Players
impl RefUnwindSafe for Players
impl Send for Players
impl Sync for Players
impl Unpin for Players
impl UnwindSafe for Players
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