pub struct BannedUser {
pub id: String,
pub username: String,
pub avatar: Option<Attachment>,
}Expand description
Banned user
Just enoguh user information to list bans.
Fields§
§id: StringId of the banned user
username: StringUsername of the banned user
avatar: Option<Attachment>Avatar of the banned user
Trait Implementations§
Source§impl Clone for BannedUser
impl Clone for BannedUser
Source§fn clone(&self) -> BannedUser
fn clone(&self) -> BannedUser
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 BannedUser
impl Debug for BannedUser
Source§impl<'de> Deserialize<'de> for BannedUser
impl<'de> Deserialize<'de> for BannedUser
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 BannedUser
impl RefUnwindSafe for BannedUser
impl Send for BannedUser
impl Sync for BannedUser
impl Unpin for BannedUser
impl UnwindSafe for BannedUser
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