#[non_exhaustive]pub struct RateLimitMetadata {
pub guild_id: GuildId,
pub nonce: Option<CompactString>,
}Expand description
The metadata of a rate-limited REQUEST_GUILD_MEMBERS.
discord.js counterpart: GatewayRateLimitedMetadata (discord-api-types).
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: GuildIdThe guild whose members were requested.
nonce: Option<CompactString>The nonce of the request.
Trait Implementations§
Source§impl Clone for RateLimitMetadata
impl Clone for RateLimitMetadata
Source§impl Debug for RateLimitMetadata
impl Debug for RateLimitMetadata
Source§impl<'de> Deserialize<'de> for RateLimitMetadata
impl<'de> Deserialize<'de> for RateLimitMetadata
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
impl Eq for RateLimitMetadata
Source§impl PartialEq for RateLimitMetadata
impl PartialEq for RateLimitMetadata
Source§impl Serialize for RateLimitMetadata
impl Serialize for RateLimitMetadata
impl StructuralPartialEq for RateLimitMetadata
Auto Trait Implementations§
impl Forget for RateLimitMetadata
impl Freeze for RateLimitMetadata
impl Move for RateLimitMetadata
impl RefUnwindSafe for RateLimitMetadata
impl Send for RateLimitMetadata
impl Sync for RateLimitMetadata
impl Unpin for RateLimitMetadata
impl UnsafeUnpin for RateLimitMetadata
impl UnwindSafe for RateLimitMetadata
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