#[non_exhaustive]pub struct ActivityInstance {
pub application_id: ApplicationId,
pub instance_id: CompactString,
pub launch_id: GenericId,
pub location: ActivityLocation,
pub users: Vec<UserId>,
}Expand description
A running Activity instance.
discord.js counterpart: ActivityInstance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.application_id: ApplicationIdThe application.
instance_id: CompactStringThe instance’s ID.
launch_id: GenericIdThe unique ID of the launch.
location: ActivityLocationWhere the instance runs.
users: Vec<UserId>The users connected to the instance.
Trait Implementations§
Source§impl Clone for ActivityInstance
impl Clone for ActivityInstance
Source§impl Debug for ActivityInstance
impl Debug for ActivityInstance
Source§impl<'de> Deserialize<'de> for ActivityInstance
impl<'de> Deserialize<'de> for ActivityInstance
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
impl Eq for ActivityInstance
Source§impl PartialEq for ActivityInstance
impl PartialEq for ActivityInstance
Source§impl Serialize for ActivityInstance
impl Serialize for ActivityInstance
impl StructuralPartialEq for ActivityInstance
Auto Trait Implementations§
impl Freeze for ActivityInstance
impl RefUnwindSafe for ActivityInstance
impl Send for ActivityInstance
impl Sync for ActivityInstance
impl Unpin for ActivityInstance
impl UnsafeUnpin for ActivityInstance
impl UnwindSafe for ActivityInstance
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