pub struct StatusResponse {
pub version: Version,
pub players: Players,
pub motd: ChatObject,
pub favicon: Option<String>,
pub previews_chat: Option<bool>,
pub enforces_secure_chat: Option<bool>,
}
Expand description
Response from the server with status information. Represents this JSON object to be serialized and deserialized.
Fields§
§version: Version
Information about the game and protocol version. See Version for more information.
players: Players
See Players for more information.
motd: ChatObject
The “motd” - message shown in the server list by the client.
favicon: Option<String>
URI to the server’s favicon.
previews_chat: Option<bool>
Does the server preview chat?
enforces_secure_chat: Option<bool>
Does the server use signed chat messages? Only returned for servers post 1.19.1
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