pub struct ServerBan {
pub id: MemberCompositeKey,
pub reason: Option<String>,
}Expand description
Representation of a server ban
Fields§
§id: MemberCompositeKeyUnique member id
reason: Option<String>Reason for ban creation
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ServerBan
impl<'de> Deserialize<'de> for ServerBan
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 ServerBan
impl RefUnwindSafe for ServerBan
impl Send for ServerBan
impl Sync for ServerBan
impl Unpin for ServerBan
impl UnwindSafe for ServerBan
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