#[non_exhaustive]pub struct Activity {Show 15 fields
pub application_id: Option<ApplicationId>,
pub assets: Option<ActivityAssets>,
pub details: Option<String>,
pub flags: Option<ActivityFlags>,
pub instance: Option<bool>,
pub kind: ActivityType,
pub name: String,
pub party: Option<ActivityParty>,
pub secrets: Option<ActivitySecrets>,
pub state: Option<String>,
pub emoji: Option<ActivityEmoji>,
pub timestamps: Option<ActivityTimestamps>,
pub url: Option<Url>,
pub buttons: Vec<ActivityButton>,
pub created_at: u64,
}Expand description
Representation of an activity that a User is performing.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.application_id: Option<ApplicationId>The ID of the application for the activity.
assets: Option<ActivityAssets>Images for the presence and their texts.
details: Option<String>What the user is doing.
flags: Option<ActivityFlags>Activity flags describing what the payload includes.
instance: Option<bool>Whether or not the activity is an instanced game session.
kind: ActivityTypeThe type of activity being performed
name: StringThe name of the activity.
party: Option<ActivityParty>Information about the user’s current party.
secrets: Option<ActivitySecrets>Secrets for Rich Presence joining and spectating.
state: Option<String>The user’s current party status.
emoji: Option<ActivityEmoji>Emoji currently used in custom status
timestamps: Option<ActivityTimestamps>Unix timestamps for the start and/or end times of the activity.
url: Option<Url>The Stream URL if Self::kind is ActivityType::Streaming.
The buttons of this activity.
Note: There can only be up to 2 buttons.
created_at: u64Unix timestamp (in milliseconds) of when the activity was added to the user’s session