pub struct StatusResponse {
pub version: ServerVersion,
pub players: ServerPlayers,
pub description: ServerDescription,
pub favicon: Option<String>,
}
Expand description
The decoded JSON response from a status query over ServerListPing.
Fields§
§version: ServerVersion
Information about the server’s version.
players: ServerPlayers
Information about currently online players.
description: ServerDescription
Single-field struct containing the server’s MOTD.
favicon: Option<String>
Optional field containing a path to the server’s favicon.
Trait Implementations§
Source§impl Debug for StatusResponse
impl Debug for StatusResponse
Source§impl<'de> Deserialize<'de> for StatusResponse
impl<'de> Deserialize<'de> for StatusResponse
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 StatusResponse
impl RefUnwindSafe for StatusResponse
impl Send for StatusResponse
impl Sync for StatusResponse
impl Unpin for StatusResponse
impl UnwindSafe for StatusResponse
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