Struct discord_rpc_client::SetActivity
[−]
[src]
pub struct SetActivity { /* fields omitted */ }
Methods
impl SetActivity
[src]
pub fn new() -> Self
[src]
pub fn secrets<F>(self, func: F) -> Self where
F: FnOnce(SetActivitySecrets) -> SetActivitySecrets,
[src]
F: FnOnce(SetActivitySecrets) -> SetActivitySecrets,
pub fn party<F>(self, func: F) -> Self where
F: FnOnce(SetActivityParty) -> SetActivityParty,
[src]
F: FnOnce(SetActivityParty) -> SetActivityParty,
pub fn assets<F>(self, func: F) -> Self where
F: FnOnce(SetActivityAssets) -> SetActivityAssets,
[src]
F: FnOnce(SetActivityAssets) -> SetActivityAssets,
pub fn timestamps<F>(self, func: F) -> Self where
F: FnOnce(SetActivityTimestamps) -> SetActivityTimestamps,
[src]
F: FnOnce(SetActivityTimestamps) -> SetActivityTimestamps,
pub fn instance(self, value: bool) -> Self
[src]
pub fn details<S>(self, value: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
pub fn state<S>(self, value: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
Trait Implementations
impl Debug for SetActivity
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for SetActivity
[src]
fn default() -> SetActivity
[src]
Returns the "default value" for a type. Read more