pub struct Invite {
pub code: String,
pub owner_id: u128,
pub guild_id: u128,
pub created_at: i64,
pub uses: i32,
pub max_uses: Option<i16>,
pub max_age: Option<i64>,
}
Fields§
§code: String
The invite’s unique code (string)
owner_id: u128
The invite owner’s user ID
128 bit unsigned integer
guild_id: u128
The invite’s guild ID
128 bit unsigned integer
created_at: i64
When the invite was created as a timezone-naive datetime
uses: i32
How many times the invite was used
max_uses: Option<i16>
The maximum amount of times the invite can be used before being invalidated
max_age: Option<i64>
The amount of seconds from the time the invite was created until it will expire
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Invite
impl<'de> Deserialize<'de> for Invite
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 Invite
impl RefUnwindSafe for Invite
impl Send for Invite
impl Sync for Invite
impl Unpin for Invite
impl UnwindSafe for Invite
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