Struct discord_rpc_client::models::rich_presence::Activity
source · pub struct Activity { /* private fields */ }
Implementations
sourceimpl Activity
impl Activity
pub fn new() -> Self
pub fn secrets<F>(self, func: F) -> Selfwhere
F: FnOnce(ActivitySecrets) -> ActivitySecrets,
pub fn party<F>(self, func: F) -> Selfwhere
F: FnOnce(ActivityParty) -> ActivityParty,
pub fn assets<F>(self, func: F) -> Selfwhere
F: FnOnce(ActivityAssets) -> ActivityAssets,
pub fn timestamps<F>(self, func: F) -> Selfwhere
F: FnOnce(ActivityTimestamps) -> ActivityTimestamps,
pub fn instance(self, value: bool) -> Self
pub fn details<S>(self, value: S) -> Selfwhere
S: Into<String>,
pub fn state<S>(self, value: S) -> Selfwhere
S: Into<String>,
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Activity
impl<'de> Deserialize<'de> for Activity
sourcefn 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 StructuralPartialEq for Activity
Auto Trait Implementations
impl RefUnwindSafe for Activity
impl Send for Activity
impl Sync for Activity
impl Unpin for Activity
impl UnwindSafe for Activity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more