pub struct ClientPresence {
pub since: Option<i32>,
pub game: Option<ClientActivity>,
pub status: String,
pub afk: bool,
}Expand description
The current presence of the connected Client.
Fields§
§since: Option<i32>Milliseconds that the client went idle.
game: Option<ClientActivity>The user’s current activity if any.
status: StringThe status of the user.
afk: boolWhether or not the client is AFK.
Trait Implementations§
Source§impl Clone for ClientPresence
impl Clone for ClientPresence
Source§fn clone(&self) -> ClientPresence
fn clone(&self) -> ClientPresence
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 ClientPresence
impl Debug for ClientPresence
Source§impl Default for ClientPresence
impl Default for ClientPresence
Source§fn default() -> ClientPresence
fn default() -> ClientPresence
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientPresence
impl<'de> Deserialize<'de> for ClientPresence
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
Source§impl SendablePacket for ClientPresence
impl SendablePacket for ClientPresence
Auto Trait Implementations§
impl Freeze for ClientPresence
impl RefUnwindSafe for ClientPresence
impl Send for ClientPresence
impl Sync for ClientPresence
impl Unpin for ClientPresence
impl UnwindSafe for ClientPresence
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