Struct veloren_serverbrowser_api::v1::GameServer
source · [−]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,
}
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.
Implementations
Trait Implementations
sourceimpl Clone for GameServer
impl Clone for GameServer
sourcefn clone(&self) -> GameServer
fn clone(&self) -> GameServer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GameServer
impl Debug for GameServer
sourceimpl<'de> Deserialize<'de> for GameServer
impl<'de> Deserialize<'de> for GameServer
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
sourceimpl PartialEq<GameServer> for GameServer
impl PartialEq<GameServer> for GameServer
sourcefn eq(&self, other: &GameServer) -> bool
fn eq(&self, other: &GameServer) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for GameServer
impl Serialize for GameServer
impl Eq for GameServer
impl StructuralEq for GameServer
impl StructuralPartialEq for GameServer
Auto Trait Implementations
impl RefUnwindSafe for GameServer
impl Send for GameServer
impl Sync for GameServer
impl Unpin for GameServer
impl UnwindSafe for GameServer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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