pub struct Member {
pub user: MaybePartialUser,
pub guild_id: u64,
pub nick: Option<String>,
pub roles: Option<Vec<u64>>,
pub joined_at: DateTime<Utc>,
pub permissions: Permissions,
}Expand description
Represents a member of a guild. Members are user objects associated with a guild.
Fields§
§user: MaybePartialUserThe user associated with this member. This could be None in some cases.
guild_id: u64The ID of the guild this member is in.
nick: Option<String>The nickname of the member. None if the member has no nickname.
roles: Option<Vec<u64>>A list of IDs of the roles that the member has. This could be None in some cases.
joined_at: DateTime<Utc>The time that the member joined the guild.
permissions: PermissionsThe base permissions granted to the member.
Implementations§
Trait Implementations§
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