Struct minehut::models::ServerData
source · [−]pub struct ServerData {
pub static_info: StaticInfo,
pub name: String,
pub motd: String,
pub icon: Option<String>,
pub player_data: PlayerData,
pub connectable: Option<bool>,
pub visibility: bool,
}
Expand description
This struct represents the server data obtained from server list. It is different from the normal Server struct due to how Minehut structured the response.
Fields
static_info: StaticInfo
More information about the server.
name: String
Name of the server.
motd: String
MOTD of the server.
icon: Option<String>
Icon of the server.
player_data: PlayerData
Information about players playing on server.
connectable: Option<bool>
Can be connected to, might return nothing.
visibility: bool
Whether server can be seen on server list.
Trait Implementations
sourceimpl Debug for ServerData
impl Debug for ServerData
sourceimpl<'de> Deserialize<'de> for ServerData
impl<'de> Deserialize<'de> for ServerData
sourcefn 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 RefUnwindSafe for ServerData
impl Send for ServerData
impl Sync for ServerData
impl Unpin for ServerData
impl UnwindSafe for ServerData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more