Struct discord_sdk::activity::ActivityInvite [−][src]
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
Performs the conversion.
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
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more