pub struct ServerInfo {
pub name: String,
pub version: String,
pub description: Option<String>,
pub homepage: Option<String>,
pub repository: Option<String>,
pub authors: Option<Vec<String>>,
pub license: Option<String>,
}Expand description
Information about the server
Fields§
§name: StringServer name
version: StringServer version
description: Option<String>Optional additional information
homepage: Option<String>Optional homepage URL
repository: Option<String>Optional repository URL
Optional author information
license: Option<String>Optional license information
Implementations§
Source§impl ServerInfo
impl ServerInfo
pub fn new(name: String, version: String) -> ServerInfo
pub fn with_description(self, description: String) -> ServerInfo
pub fn with_homepage(self, homepage: String) -> ServerInfo
pub fn with_repository(self, repository: String) -> ServerInfo
pub fn with_license(self, license: String) -> ServerInfo
Trait Implementations§
Source§impl Clone for ServerInfo
impl Clone for ServerInfo
Source§fn clone(&self) -> ServerInfo
fn clone(&self) -> ServerInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 ServerInfo
impl Debug for ServerInfo
Source§impl<'de> Deserialize<'de> for ServerInfo
impl<'de> Deserialize<'de> for ServerInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServerInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServerInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ServerInfo
impl Serialize for ServerInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ServerInfo
impl RefUnwindSafe for ServerInfo
impl Send for ServerInfo
impl Sync for ServerInfo
impl Unpin for ServerInfo
impl UnwindSafe for ServerInfo
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