Struct twilight_model::gateway::payload::MemberUpdate [−][src]
pub struct MemberUpdate { pub guild_id: GuildId, pub deaf: Option<bool>, pub joined_at: String, pub mute: Option<bool>, pub nick: Option<String>, pub pending: bool, pub premium_since: Option<String>, pub roles: Vec<RoleId>, pub user: User, }
Fields
guild_id: GuildId
deaf: Option<bool>
joined_at: String
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<RoleId>
user: User
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MemberUpdate
impl Send for MemberUpdate
impl Sync for MemberUpdate
impl Unpin for MemberUpdate
impl UnwindSafe for MemberUpdate
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more