pub struct Activity {Show 16 fields
pub application_id: Option<Id<ApplicationMarker>>,
pub assets: Option<ActivityAssets>,
pub buttons: Vec<ActivityButton>,
pub created_at: Option<u64>,
pub details: Option<String>,
pub emoji: Option<ActivityEmoji>,
pub flags: Option<ActivityFlags>,
pub id: Option<String>,
pub instance: Option<bool>,
pub kind: ActivityType,
pub name: String,
pub party: Option<ActivityParty>,
pub secrets: Option<ActivitySecrets>,
pub state: Option<String>,
pub timestamps: Option<ActivityTimestamps>,
pub url: Option<String>,
}
Fields§
§application_id: Option<Id<ApplicationMarker>>
§assets: Option<ActivityAssets>
§created_at: Option<u64>
Unix timestamp of when the activity was added to the user’s session, in milliseconds.
details: Option<String>
§emoji: Option<ActivityEmoji>
§flags: Option<ActivityFlags>
§id: Option<String>
§instance: Option<bool>
§kind: ActivityType
§name: String
§party: Option<ActivityParty>
§secrets: Option<ActivitySecrets>
§state: Option<String>
§timestamps: Option<ActivityTimestamps>
§url: Option<String>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Activity
impl<'de> Deserialize<'de> for Activity
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 From<MinimalActivity> for Activity
impl From<MinimalActivity> for Activity
source§fn from(minimal_activity: MinimalActivity) -> Self
fn from(minimal_activity: MinimalActivity) -> Self
Converts to this type from the input type.
impl Eq for Activity
impl StructuralPartialEq for Activity
Auto Trait Implementations§
impl Freeze for Activity
impl RefUnwindSafe for Activity
impl Send for Activity
impl Sync for Activity
impl Unpin for Activity
impl UnwindSafe for Activity
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)