pub struct GetGameMinecraftServerstatus200Response {
pub code: Option<i32>,
pub favicon_url: Option<String>,
pub ip: Option<String>,
pub max_players: Option<i32>,
pub motd_clean: Option<String>,
pub motd_html: Option<String>,
pub online: Option<bool>,
pub players: Option<i32>,
pub port: Option<i32>,
pub version: Option<String>,
}Fields§
§code: Option<i32>状态码,200代表成功。
favicon_url: Option<String>服务器图标的 Base64 Data URI。你可以直接在 <img> 标签的 src 属性中使用它。
ip: Option<String>服务器解析后的IP地址。
max_players: Option<i32>服务器配置的最大玩家容量。
motd_clean: Option<String>纯文本格式的服务器MOTD(每日消息),去除了所有颜色和格式代码。
motd_html: Option<String>HTML格式的服务器MOTD,保留了颜色和样式,方便你在网页上直接渲染。
online: Option<bool>服务器当前是否在线。
players: Option<i32>当前在线的玩家数量。
port: Option<i32>服务器使用的端口。
version: Option<String>服务器报告的版本信息。
Implementations§
Trait Implementations§
Source§impl Clone for GetGameMinecraftServerstatus200Response
impl Clone for GetGameMinecraftServerstatus200Response
Source§fn clone(&self) -> GetGameMinecraftServerstatus200Response
fn clone(&self) -> GetGameMinecraftServerstatus200Response
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for GetGameMinecraftServerstatus200Response
impl Default for GetGameMinecraftServerstatus200Response
Source§fn default() -> GetGameMinecraftServerstatus200Response
fn default() -> GetGameMinecraftServerstatus200Response
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetGameMinecraftServerstatus200Response
impl<'de> Deserialize<'de> for GetGameMinecraftServerstatus200Response
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
Source§impl PartialEq for GetGameMinecraftServerstatus200Response
impl PartialEq for GetGameMinecraftServerstatus200Response
Source§fn eq(&self, other: &GetGameMinecraftServerstatus200Response) -> bool
fn eq(&self, other: &GetGameMinecraftServerstatus200Response) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GetGameMinecraftServerstatus200Response
Auto Trait Implementations§
impl Freeze for GetGameMinecraftServerstatus200Response
impl RefUnwindSafe for GetGameMinecraftServerstatus200Response
impl Send for GetGameMinecraftServerstatus200Response
impl Sync for GetGameMinecraftServerstatus200Response
impl Unpin for GetGameMinecraftServerstatus200Response
impl UnwindSafe for GetGameMinecraftServerstatus200Response
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