Struct twilight_model::gateway::payload::incoming::ThreadMembersUpdate
source · pub struct ThreadMembersUpdate {
pub added_members: Vec<ThreadMember>,
pub guild_id: Id<GuildMarker>,
pub id: Id<ChannelMarker>,
pub member_count: i32,
pub removed_member_ids: Vec<Id<UserMarker>>,
}
Fields§
§added_members: Vec<ThreadMember>
List of thread members.
Includes the member
key.
guild_id: Id<GuildMarker>
§id: Id<ChannelMarker>
§member_count: i32
Number of members in the thread.
This is an approximation and may not be accurate.
removed_member_ids: Vec<Id<UserMarker>>
Trait Implementations§
source§impl Clone for ThreadMembersUpdate
impl Clone for ThreadMembersUpdate
source§fn clone(&self) -> ThreadMembersUpdate
fn clone(&self) -> ThreadMembersUpdate
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 ThreadMembersUpdate
impl Debug for ThreadMembersUpdate
source§impl<'de> Deserialize<'de> for ThreadMembersUpdate
impl<'de> Deserialize<'de> for ThreadMembersUpdate
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ThreadMembersUpdate
impl Hash for ThreadMembersUpdate
source§impl PartialEq<ThreadMembersUpdate> for ThreadMembersUpdate
impl PartialEq<ThreadMembersUpdate> for ThreadMembersUpdate
source§fn eq(&self, other: &ThreadMembersUpdate) -> bool
fn eq(&self, other: &ThreadMembersUpdate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ThreadMembersUpdate
impl Serialize for ThreadMembersUpdate
impl Eq for ThreadMembersUpdate
impl StructuralEq for ThreadMembersUpdate
impl StructuralPartialEq for ThreadMembersUpdate
Auto Trait Implementations§
impl RefUnwindSafe for ThreadMembersUpdate
impl Send for ThreadMembersUpdate
impl Sync for ThreadMembersUpdate
impl Unpin for ThreadMembersUpdate
impl UnwindSafe for ThreadMembersUpdate
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