pub struct MemberUpdate {
pub avatar: Option<ImageHash>,
pub communication_disabled_until: Option<Timestamp>,
pub guild_id: Id<GuildMarker>,
pub flags: Option<MemberFlags>,
pub deaf: Option<bool>,
pub joined_at: Option<Timestamp>,
pub mute: Option<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>
§guild_id: Id<GuildMarker>
§flags: Option<MemberFlags>
§deaf: Option<bool>
§joined_at: Option<Timestamp>
§mute: Option<bool>
§nick: Option<String>
§pending: bool
Whether the user has yet to pass the guild’s Membership Screening requirements.
Note: This field is still under refactoring by Discord. For more info, check this issue and pull request.
roles: Vec<Id<RoleMarker>>
§user: User
Trait Implementations§
Source§impl Clone for MemberUpdate
impl Clone for MemberUpdate
Source§fn clone(&self) -> MemberUpdate
fn clone(&self) -> MemberUpdate
Returns a copy 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 MemberUpdate
impl Debug for MemberUpdate
Source§impl<'de> Deserialize<'de> for MemberUpdate
impl<'de> Deserialize<'de> for MemberUpdate
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
Source§impl Hash for MemberUpdate
impl Hash for MemberUpdate
Source§impl PartialEq for MemberUpdate
impl PartialEq for MemberUpdate
Source§impl Serialize for MemberUpdate
impl Serialize for MemberUpdate
impl Eq for MemberUpdate
impl StructuralPartialEq for MemberUpdate
Auto Trait Implementations§
impl Freeze for MemberUpdate
impl RefUnwindSafe for MemberUpdate
impl Send for MemberUpdate
impl Sync for MemberUpdate
impl Unpin for MemberUpdate
impl UnwindSafe for MemberUpdate
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