pub struct InviteCreateEvent<'a> {
pub channel_id: Snowflake,
pub code: TitanString<'a>,
pub created_at: TitanString<'a>,
pub guild_id: Option<Snowflake>,
pub inviter: Option<User<'a>>,
pub max_age: u32,
pub max_uses: u32,
pub target_type: Option<u8>,
pub target_user: Option<User<'a>>,
pub target_application: Option<Application>,
pub temporary: bool,
pub uses: u32,
}Expand description
Event data for INVITE_CREATE.
Fields§
§channel_id: SnowflakeThe channel the invite is for.
code: TitanString<'a>The unique invite code.
created_at: TitanString<'a>The time at which the invite was created (ISO8601 timestamp).
guild_id: Option<Snowflake>The guild of the invite.
inviter: Option<User<'a>>The user that created the invite.
max_age: u32How long the invite is valid for (in seconds).
max_uses: u32The maximum number of times the invite can be used.
target_type: Option<u8>The target type for this voice channel invite.
target_user: Option<User<'a>>The user whose stream to display for voice channel stream invites.
target_application: Option<Application>The embedded application for voice channel invites.
temporary: boolWhether or not the invite is temporary.
uses: u32How many times the invite has been used.
Trait Implementations§
Source§impl<'a> Clone for InviteCreateEvent<'a>
impl<'a> Clone for InviteCreateEvent<'a>
Source§fn clone(&self) -> InviteCreateEvent<'a>
fn clone(&self) -> InviteCreateEvent<'a>
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<'a> Debug for InviteCreateEvent<'a>
impl<'a> Debug for InviteCreateEvent<'a>
Source§impl<'de, 'a> Deserialize<'de> for InviteCreateEvent<'a>
impl<'de, 'a> Deserialize<'de> for InviteCreateEvent<'a>
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<'a> Freeze for InviteCreateEvent<'a>
impl<'a> RefUnwindSafe for InviteCreateEvent<'a>
impl<'a> Send for InviteCreateEvent<'a>
impl<'a> Sync for InviteCreateEvent<'a>
impl<'a> Unpin for InviteCreateEvent<'a>
impl<'a> UnwindSafe for InviteCreateEvent<'a>
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