Struct twilight_model::gateway::payload::incoming::invite_create::InviteCreate
source · pub struct InviteCreate {
pub channel_id: Id<ChannelMarker>,
pub code: String,
pub created_at: Timestamp,
pub guild_id: Id<GuildMarker>,
pub inviter: Option<User>,
pub max_age: u64,
pub max_uses: u64,
pub target_user_type: Option<TargetType>,
pub target_user: Option<PartialUser>,
pub temporary: bool,
pub uses: u8,
}
Expand description
A new Invite
has been created.
Fields§
§channel_id: Id<ChannelMarker>
ID of the channel invited users will first see.
code: String
Unique code.
created_at: Timestamp
When the invite was created.
guild_id: Id<GuildMarker>
ID of the guild being invited to.
inviter: Option<User>
Information about the user who created the invite.
max_age: u64
Maximum age before the invite expires.
This is in seconds.
max_uses: u64
Maximum number of uses before the invite expires.
target_user_type: Option<TargetType>
Target of the invite.
target_user: Option<PartialUser>
User whose stream to display for this voice channel stream invite.
temporary: bool
Whether the invite is temporary.
Invited users will be kicked when they are disconnected from an audio channel unless they’re assigned a role.
uses: u8
Number of times the invite has been used.
This will always be zero.
Trait Implementations§
source§impl Clone for InviteCreate
impl Clone for InviteCreate
source§fn clone(&self) -> InviteCreate
fn clone(&self) -> InviteCreate
Returns a copy 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 InviteCreate
impl Debug for InviteCreate
source§impl<'de> Deserialize<'de> for InviteCreate
impl<'de> Deserialize<'de> for InviteCreate
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
source§impl Hash for InviteCreate
impl Hash for InviteCreate
source§impl PartialEq<InviteCreate> for InviteCreate
impl PartialEq<InviteCreate> for InviteCreate
source§fn eq(&self, other: &InviteCreate) -> bool
fn eq(&self, other: &InviteCreate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.