pub struct Server {Show 27 fields
pub categories: Vec<String>,
pub inherited_categories: Vec<String>,
pub purchased_icons: Vec<String>,
pub backup_slots: usize,
pub suspended: bool,
pub server_version_type: String,
pub proxy: bool,
pub connected_servers: Vec<String>,
pub id: String,
pub motd: String,
pub visibility: bool,
pub server_plan: String,
pub storage_node: String,
pub owner: String,
pub name: String,
pub name_lower: String,
pub creation: usize,
pub platform: String,
pub credits_per_day: f32,
pub last_online: usize,
pub active_icon: Option<String>,
pub icon: Option<String>,
pub online: bool,
pub max_players: usize,
pub player_count: usize,
pub raw_plan: String,
pub active_server_plan: String,
/* private fields */
}
Expand description
This struct represents a Minehut server, contains most information returned by the Minehut API.
Fields
categories: Vec<String>
Categories of the server
inherited_categories: Vec<String>
purchased_icons: Vec<String>
Icons purchased by the owner.
backup_slots: usize
Backup slots for the server.
suspended: bool
Whether ser ver is suspended.
server_version_type: String
What server type it is.
proxy: bool
Wether it uses a proxy.
connected_servers: Vec<String>
All linked servers.
id: String
ID of the server.
motd: String
MOTD of the server.
visibility: bool
Wether the server is allowed to be seen on the server list.
server_plan: String
The Minehut plan it is using.
storage_node: String
Its storage node.
owner: String
UUID of the owner.
name: String
Name of the server.
name_lower: String
Lower case name of the server.
creation: usize
Time it was created in.
platform: String
What platform it is on.
credits_per_day: f32
Credits spent per day to host it.
last_online: usize
Time it was last online.
active_icon: Option<String>
Its icon.
icon: Option<String>
Icon of the server.
online: bool
Wether it is online or not.
max_players: usize
The maximum number of players it supports.
player_count: usize
Current number of players on it.
raw_plan: String
Raw Minehut plan.
active_server_plan: String
Current server plan.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Server
impl<'de> Deserialize<'de> for Server
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 Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnwindSafe for Server
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