pub struct BanApiType {
pub reason: Option<String>,
pub user: UserApiType,
}Expand description
Fields§
§reason: Option<String>the reason for the ban
user: UserApiTypethe banned user
Trait Implementations§
Source§impl Clone for BanApiType
impl Clone for BanApiType
Source§fn clone(&self) -> BanApiType
fn clone(&self) -> BanApiType
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 BanApiType
impl Debug for BanApiType
Source§impl<'de> Deserialize<'de> for BanApiType
impl<'de> Deserialize<'de> for BanApiType
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 BanApiType
impl RefUnwindSafe for BanApiType
impl Send for BanApiType
impl Sync for BanApiType
impl Unpin for BanApiType
impl UnwindSafe for BanApiType
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