pub struct ActivityBuilder { /* private fields */ }Implementations§
Source§impl ActivityBuilder
impl ActivityBuilder
pub fn new(name: String, activity_type: ActivityType) -> Self
pub fn set_url(self, url: String) -> Self
pub fn set_timestamps(self, start: u64, end: u64) -> Self
pub fn set_application_id(self, application_id: u64) -> Self
pub fn set_emoji(self, emoji: Emoji) -> Self
pub fn set_asset(self, assets: Asset) -> Self
pub fn set_flags(self, flags: u16) -> Self
pub fn set_state(self, state: String) -> Self
pub fn build(self) -> Value
Trait Implementations§
Source§impl Clone for ActivityBuilder
impl Clone for ActivityBuilder
Source§fn clone(&self) -> ActivityBuilder
fn clone(&self) -> ActivityBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActivityBuilder
impl Debug for ActivityBuilder
Source§impl<'de> Deserialize<'de> for ActivityBuilder
impl<'de> Deserialize<'de> for ActivityBuilder
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
Auto Trait Implementations§
impl Freeze for ActivityBuilder
impl RefUnwindSafe for ActivityBuilder
impl Send for ActivityBuilder
impl Sync for ActivityBuilder
impl Unpin for ActivityBuilder
impl UnwindSafe for ActivityBuilder
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