pub struct Version {
pub name: String,
pub protocol: u16,
}
Expand description
Struct that stores version information about the server.
Not intended to be used directly, but only as a part of StatusResponse.
Fields§
§name: String
The game version (e.g: 1.19.1)
protocol: u16
The version of the Protocol being used.
See the wiki.vg page for a reference on what versions these correspond to.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Version
impl<'de> Deserialize<'de> for Version
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