pub struct UserBan {
pub owner_member_id: MemberId,
pub banned_at: SystemTime,
pub banned_user: MemberId,
}Expand description
Contains the core information about a user ban
Includes the room owner’s ID, the time of the ban, and the ID of the banned user
Fields§
§owner_member_id: MemberId§banned_at: SystemTime§banned_user: MemberIdTrait Implementations§
Source§impl<'de> Deserialize<'de> for UserBan
impl<'de> Deserialize<'de> for UserBan
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
impl StructuralPartialEq for UserBan
Auto Trait Implementations§
impl Freeze for UserBan
impl RefUnwindSafe for UserBan
impl Send for UserBan
impl Sync for UserBan
impl Unpin for UserBan
impl UnsafeUnpin for UserBan
impl UnwindSafe for UserBan
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