pub struct InviteMetadata {
pub inviter: User,
pub uses: i32,
pub max_uses: i32,
pub max_age: i32,
pub temporary: bool,
pub created_at: DateTime<FixedOffset>,
pub revoked: bool,
}Expand description
Detailed information about an invite.
Fields§
§inviter: UserThe user who created the invite.
uses: i32The amount of times that this invite has been used.
max_uses: i32The maximum amount of uses allowed for this invite.
max_age: i32The duration after which the invite expires, in seconds.
temporary: boolWhether or not this invite grants temporary membership.
created_at: DateTime<FixedOffset>The date that this invite was created.
revoked: boolWhether or not this invite has been revoked.
Trait Implementations§
Source§impl Clone for InviteMetadata
impl Clone for InviteMetadata
Source§fn clone(&self) -> InviteMetadata
fn clone(&self) -> InviteMetadata
Returns a duplicate 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 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
Auto Trait Implementations§
impl Freeze for InviteMetadata
impl RefUnwindSafe for InviteMetadata
impl Send for InviteMetadata
impl Sync for InviteMetadata
impl Unpin 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