#[non_exhaustive]pub struct ClientStatus {
pub desktop: Option<Status>,
pub mobile: Option<Status>,
pub web: Option<Status>,
pub vr: Option<Status>,
}Expand description
A user’s status per platform;
a platform is None when the user is offline or invisible there.
discord.js counterpart: ClientPresenceStatusData.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.desktop: Option<Status>The desktop app session’s status.
mobile: Option<Status>The mobile app session’s status.
web: Option<Status>The web (browser, bot) session’s status.
vr: Option<Status>The virtual reality app session’s status.
Trait Implementations§
Source§impl Clone for ClientStatus
impl Clone for ClientStatus
Source§impl Debug for ClientStatus
impl Debug for ClientStatus
Source§impl Default for ClientStatus
impl Default for ClientStatus
Source§impl<'de> Deserialize<'de> for ClientStatus
impl<'de> Deserialize<'de> for ClientStatus
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
impl Eq for ClientStatus
Source§impl PartialEq for ClientStatus
impl PartialEq for ClientStatus
Source§impl Serialize for ClientStatus
impl Serialize for ClientStatus
impl StructuralPartialEq for ClientStatus
Auto Trait Implementations§
impl Freeze for ClientStatus
impl RefUnwindSafe for ClientStatus
impl Send for ClientStatus
impl Sync for ClientStatus
impl Unpin for ClientStatus
impl UnsafeUnpin for ClientStatus
impl UnwindSafe for ClientStatus
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