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

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more