pub enum ServerDescription {
Plain(String),
Object {
text: String,
},
}
Expand description
Contains the server’s MOTD.
Variants§
Trait Implementations§
Source§impl Debug for ServerDescription
impl Debug for ServerDescription
Source§impl<'de> Deserialize<'de> for ServerDescription
impl<'de> Deserialize<'de> for ServerDescription
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 ServerDescription
impl RefUnwindSafe for ServerDescription
impl Send for ServerDescription
impl Sync for ServerDescription
impl Unpin for ServerDescription
impl UnwindSafe for ServerDescription
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