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 for InviteCreate
impl PartialEq for InviteCreate
Source§impl Serialize for InviteCreate
impl Serialize for InviteCreate
impl Eq for InviteCreate
impl StructuralPartialEq for InviteCreate
Auto Trait Implementations§
impl Freeze for InviteCreate
impl RefUnwindSafe for InviteCreate
impl Send for InviteCreate
impl Sync for InviteCreate
impl Unpin for InviteCreate
impl UnwindSafe for InviteCreate
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