#[non_exhaustive]pub struct InviteMetadata {
pub uses: u32,
pub max_uses: u32,
pub max_age: u32,
pub temporary: bool,
pub created_at: Timestamp,
}Expand description
The metadata of an invite: how often it was used and for how long it is valid.
discord.js counterpart: Invite#uses, #maxUses, #maxAge, #temporary,
#createdTimestamp.
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.uses: u32How many times the invite was used.
max_uses: u32How many times the invite may be used; 0 means unlimited.
max_age: u32How long the invite is valid, in seconds; 0 means forever.
temporary: boolWhether the invite only grants temporary membership.
created_at: TimestampWhen the invite was created.
Trait Implementations§
Source§impl Clone for InviteMetadata
impl Clone for InviteMetadata
impl Copy for InviteMetadata
Source§impl Debug for InviteMetadata
impl Debug for InviteMetadata
Source§impl<'de> Deserialize<'de> for InviteMetadata
impl<'de> Deserialize<'de> for InviteMetadata
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 InviteMetadata
Source§impl Hash for InviteMetadata
impl Hash for InviteMetadata
Source§impl PartialEq for InviteMetadata
impl PartialEq for InviteMetadata
Source§impl Serialize for InviteMetadata
impl Serialize for InviteMetadata
impl StructuralPartialEq for InviteMetadata
Auto Trait Implementations§
impl Freeze for InviteMetadata
impl RefUnwindSafe for InviteMetadata
impl Send for InviteMetadata
impl Sync for InviteMetadata
impl Unpin for InviteMetadata
impl UnsafeUnpin for InviteMetadata
impl UnwindSafe for InviteMetadata
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