pub struct StatusData { /* private fields */ }Expand description
The response data corresponding to this endpoint.
Implementations§
Source§impl StatusData
impl StatusData
Sourcepub fn online(&self) -> bool
pub fn online(&self) -> bool
Returns true if the player is online.
Players have the option to hide this value in their settings:
false means either offline or online but hidden.
Sourcepub fn game_type(&self) -> Option<&str>
pub fn game_type(&self) -> Option<&str>
Returns the type of game the player is currently playing, if present.
TODO: This will be changed into an enum
Trait Implementations§
Source§impl Clone for StatusData
impl Clone for StatusData
Source§fn clone(&self) -> StatusData
fn clone(&self) -> StatusData
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 StatusData
impl Debug for StatusData
Source§impl<'de> Deserialize<'de> for StatusData
impl<'de> Deserialize<'de> for StatusData
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 StatusData
impl RefUnwindSafe for StatusData
impl Send for StatusData
impl Sync for StatusData
impl Unpin for StatusData
impl UnwindSafe for StatusData
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