pub struct ServerBan {
pub user: Id,
pub reason: Option<String>,
}Expand description
Fields§
§user: IdThe ID of the user who is banned.
reason: Option<String>The reason for the ban, if provided.
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