pub struct GameServer {
    pub name: String,
    pub address: String,
    pub port: u16,
    pub description: String,
    pub location: Option<Country>,
    pub auth_server: String,
    pub channel: Option<String>,
    pub official: bool,
    pub extra: HashMap<String, Field>,
}

Fields§

§name: String

The name of the server.

§address: String

The address through which the server might be accessed on the open internet. This field may be an IPv4 address, IPv6 address, URL, must not contain a port

§port: u16

Port of the gameserver address (usually 14004)

§description: String

The server description.

§location: Option<Country>

The ISO 3166‑1 Alpha-2 code that the server is physically based in (note: this field is intended as an indication of factors like ping, not the language of the server). (e.g. “US”)

§auth_server: String

The auth server that must be used to connect to this server. If you want to use the official auth server use Some("https://auth.veloren.net")

§channel: Option<String>

The version channel used by the server. None means not running a channel distributed by Airshipper. If in doubt, "weekly" is probably correct.

§official: bool

Whether the server is officially affiliated with the Veloren project.

§extra: HashMap<String, Field>

Any extra attributes provided by the server.

The key is a machine-readable ID. Frontends may choose to display these fields in a different way (for example, adding an icon) based on this machine-readable ID, if they recognise it. There is no specific list of valid IDs and recognition is based on convention. Some examples of IDs include:

  • website
  • email
  • discord
  • mastodon
  • reddit
  • youtube

Implementations§

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. 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.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.