pub struct Member {
pub user: Option<User>,
pub nick: Option<String>,
pub avatar: Option<String>,
pub roles: Vec<Snowflake>,
pub joined_at: String,
pub deaf: Option<bool>,
pub mute: Option<bool>,
pub pending: Option<bool>,
pub permissions: Option<String>,
pub communication_disabled_until: Option<String>,
}Expand description
A guild member. Wraps a User with guild-specific info like nickname and roles.
Fields§
§user: Option<User>§nick: Option<String>§avatar: Option<String>§roles: Vec<Snowflake>§joined_at: String§deaf: Option<bool>§mute: Option<bool>§pending: Option<bool>§permissions: Option<String>§communication_disabled_until: Option<String>ISO 8601 timestamp. If set, the member is timed out until then.
Implementations§
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
Auto Trait Implementations§
impl Freeze for Member
impl RefUnwindSafe for Member
impl Send for Member
impl Sync for Member
impl Unpin for Member
impl UnsafeUnpin 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