pub struct ClientActivity {
pub name: String,
pub kind: ActivityType,
pub url: Option<String>,
}Expand description
Represents the activity of the current client.
Fields§
§name: StringThe name of the current activity.
kind: ActivityTypeThe activity type.
url: Option<String>The stream URL, if streaming.
Implementations§
Trait Implementations§
Source§impl Clone for ClientActivity
impl Clone for ClientActivity
Source§fn clone(&self) -> ClientActivity
fn clone(&self) -> ClientActivity
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 ClientActivity
impl Debug for ClientActivity
Source§impl Default for ClientActivity
impl Default for ClientActivity
Source§fn default() -> ClientActivity
fn default() -> ClientActivity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientActivity
impl<'de> Deserialize<'de> for ClientActivity
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 ClientActivity
impl RefUnwindSafe for ClientActivity
impl Send for ClientActivity
impl Sync for ClientActivity
impl Unpin for ClientActivity
impl UnwindSafe for ClientActivity
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