pub struct Invite {Show 15 fields
pub approximate_member_count: Option<u64>,
pub approximate_presence_count: Option<u64>,
pub channel: Option<InviteChannel>,
pub code: String,
pub created_at: Option<Timestamp>,
pub expires_at: Option<Timestamp>,
pub guild: Option<InviteGuild>,
pub inviter: Option<User>,
pub max_age: Option<u64>,
pub max_uses: Option<u64>,
pub target_type: Option<TargetType>,
pub target_user: Option<User>,
pub temporary: Option<bool>,
pub kind: InviteType,
pub uses: Option<u64>,
}
Fields§
§approximate_member_count: Option<u64>
§approximate_presence_count: Option<u64>
§channel: Option<InviteChannel>
§code: String
§created_at: Option<Timestamp>
§expires_at: Option<Timestamp>
§guild: Option<InviteGuild>
§inviter: Option<User>
§max_age: Option<u64>
§max_uses: Option<u64>
§target_type: Option<TargetType>
§target_user: Option<User>
§temporary: Option<bool>
§kind: InviteType
§uses: Option<u64>
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
impl Eq for Invite
impl StructuralPartialEq for Invite
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)