pub struct Member {
pub avatar: Option<ImageHash>,
pub communication_disabled_until: Option<Timestamp>,
pub deaf: bool,
pub flags: MemberFlags,
pub joined_at: Option<Timestamp>,
pub mute: bool,
pub nick: Option<String>,
pub pending: bool,
pub premium_since: Option<Timestamp>,
pub roles: Vec<Id<RoleMarker>>,
pub user: User,
}
Fields§
§avatar: Option<ImageHash>
Member’s guild avatar.
communication_disabled_until: Option<Timestamp>
§deaf: bool
§flags: MemberFlags
Flags for the member.
Defaults to an empty bitfield.
joined_at: Option<Timestamp>
§mute: bool
§nick: Option<String>
§pending: bool
Whether the user has yet to pass the guild’s [Membership Screening] requirements.
roles: Vec<Id<RoleMarker>>
§user: User
Trait Implementations§
source§impl<'de> Deserialize<'de> for Member
impl<'de> Deserialize<'de> for Member
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 Eq for Member
impl StructuralPartialEq for Member
Auto Trait Implementations§
impl Freeze for Member
impl RefUnwindSafe for Member
impl Send for Member
impl Sync for Member
impl Unpin for Member
impl UnwindSafe for Member
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)