Struct discord_sdk::activity::ActivityInvite
source · pub struct ActivityInvite {
pub user: User,
pub activity: InviteActivity,
pub kind: ActivityActionKind,
pub channel_id: Snowflake,
pub message_id: Snowflake,
}
Fields§
§user: User
The user that invited the current user to the activity
activity: InviteActivity
The activity the invite is for
kind: ActivityActionKind
The kind of activity the invite is for
channel_id: Snowflake
I think this is the unique identifier for the channel the invite was sent to, which is (always?) the private channel between the 2 users
message_id: Snowflake
The unique message identifier for the invite
Trait Implementations§
source§impl AsRef<ActivityInvite> for InviteEvent
impl AsRef<ActivityInvite> for InviteEvent
source§fn as_ref(&self) -> &ActivityInvite
fn as_ref(&self) -> &ActivityInvite
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Debug for ActivityInvite
impl Debug for ActivityInvite
source§impl<'de> Deserialize<'de> for ActivityInvite
impl<'de> Deserialize<'de> for ActivityInvite
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 RefUnwindSafe for ActivityInvite
impl Send for ActivityInvite
impl Sync for ActivityInvite
impl Unpin for ActivityInvite
impl UnwindSafe for ActivityInvite
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