pub struct PartialMember {
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 permissions: Option<Permissions>,
pub premium_since: Option<Timestamp>,
pub roles: Vec<Id<RoleMarker>>,
pub user: Option<User>,
}
Fields§
§avatar: Option<ImageHash>
Member’s guild avatar.
communication_disabled_until: Option<Timestamp>
§deaf: bool
§flags: MemberFlags
§joined_at: Option<Timestamp>
§mute: bool
§nick: Option<String>
§permissions: Option<Permissions>
Permission data for the member.
Sent in an Interaction
.
roles: Vec<Id<RoleMarker>>
§user: Option<User>
Trait Implementations§
source§impl Clone for PartialMember
impl Clone for PartialMember
source§fn clone(&self) -> PartialMember
fn clone(&self) -> PartialMember
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 PartialMember
impl Debug for PartialMember
source§impl<'de> Deserialize<'de> for PartialMember
impl<'de> Deserialize<'de> for PartialMember
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 PartialMember
impl Hash for PartialMember
source§impl PartialEq for PartialMember
impl PartialEq for PartialMember
source§impl Serialize for PartialMember
impl Serialize for PartialMember
impl Eq for PartialMember
impl StructuralPartialEq for PartialMember
Auto Trait Implementations§
impl Freeze for PartialMember
impl RefUnwindSafe for PartialMember
impl Send for PartialMember
impl Sync for PartialMember
impl Unpin for PartialMember
impl UnwindSafe for PartialMember
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
)