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