#[non_exhaustive]pub struct GuildMembersChunkEvent {
pub guild_id: GuildId,
pub members: HashMap<UserId, Member>,
pub chunk_index: u32,
pub chunk_count: u32,
pub not_found: Vec<GenericId>,
pub presences: Option<Vec<Presence>>,
pub nonce: Option<String>,
}
Expand description
Requires no gateway intents.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.guild_id: GuildId
ID of the guild.
members: HashMap<UserId, Member>
Set of guild members.
chunk_index: u32
Chunk index in the expected chunks for this response (0 <= chunk_index < chunk_count).
chunk_count: u32
Total number of expected chunks for this response.
not_found: Vec<GenericId>
When passing an invalid ID to crate::gateway::ShardRunnerMessage::ChunkGuild
, it will
be returned here.
presences: Option<Vec<Presence>>
When passing true to crate::gateway::ShardRunnerMessage::ChunkGuild
, presences of the
returned members will be here.
nonce: Option<String>
Nonce used in the crate::gateway::ShardRunnerMessage::ChunkGuild
request.
Implementations§
Source§impl<'de> GuildMembersChunkEvent
impl<'de> GuildMembersChunkEvent
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<GuildMembersChunkEvent, __D::Error>where
__D: Deserializer<'de>,
Source§impl GuildMembersChunkEvent
impl GuildMembersChunkEvent
pub fn serialize<__S>(
__self: &GuildMembersChunkEvent,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Trait Implementations§
Source§impl CacheUpdate for GuildMembersChunkEvent
impl CacheUpdate for GuildMembersChunkEvent
Source§impl Clone for GuildMembersChunkEvent
impl Clone for GuildMembersChunkEvent
Source§fn clone(&self) -> GuildMembersChunkEvent
fn clone(&self) -> GuildMembersChunkEvent
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 GuildMembersChunkEvent
impl Debug for GuildMembersChunkEvent
Source§impl<'de> Deserialize<'de> for GuildMembersChunkEvent
impl<'de> Deserialize<'de> for GuildMembersChunkEvent
Source§fn deserialize<D: Deserializer<'de>>(
deserializer: D,
) -> StdResult<Self, D::Error>
fn deserialize<D: Deserializer<'de>>( deserializer: D, ) -> StdResult<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GuildMembersChunkEvent
impl RefUnwindSafe for GuildMembersChunkEvent
impl Send for GuildMembersChunkEvent
impl Sync for GuildMembersChunkEvent
impl Unpin for GuildMembersChunkEvent
impl UnwindSafe for GuildMembersChunkEvent
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