#[non_exhaustive]pub struct PublicServer {
pub host: UrlField,
pub name: String,
pub rank: Option<ServerRank>,
}Expand description
A publicly-listed central server that a client can connect to.
JSON schema
{
"description": "A publicly-listed central server that a client can connect to.",
"type": "object",
"required": [
"host",
"name"
],
"properties": {
"host": {
"description": "The server's reachable base URL.",
"$ref": "#/components/schemas/UrlField"
},
"name": {
"description": "Public-facing display name of the server.",
"type": "string"
},
"rank": {
"oneOf": [
{
"type": "null"
},
{
"description": "The server's environment tier (production, clone, demo, test, or\ndev), if set. Used to order the listing and to let clients label\nnon-production entries.",
"$ref": "#/components/schemas/ServerRank"
}
]
}
}
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.host: UrlFieldThe server’s reachable base URL.
name: StringPublic-facing display name of the server.
rank: Option<ServerRank>Implementations§
Source§impl PublicServer
impl PublicServer
Sourcepub fn builder() -> PublicServerBuilder
pub fn builder() -> PublicServerBuilder
Create an instance of PublicServer using the builder syntax
Trait Implementations§
Source§impl Clone for PublicServer
impl Clone for PublicServer
Source§fn clone(&self) -> PublicServer
fn clone(&self) -> PublicServer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PublicServer
impl Debug for PublicServer
Source§impl<'de> Deserialize<'de> for PublicServer
impl<'de> Deserialize<'de> for PublicServer
Source§fn 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 Freeze for PublicServer
impl RefUnwindSafe for PublicServer
impl Send for PublicServer
impl Sync for PublicServer
impl Unpin for PublicServer
impl UnsafeUnpin for PublicServer
impl UnwindSafe for PublicServer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more