pub struct StatusReply { /* private fields */ }Expand description
A data structure that maps to this endpoint.
Response fields are captured in StatusData
Implementations§
Methods from Deref<Target = 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 StatusReply
impl Clone for StatusReply
Source§fn clone(&self) -> StatusReply
fn clone(&self) -> StatusReply
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 StatusReply
impl Debug for StatusReply
Source§impl Deref for StatusReply
impl Deref for StatusReply
Source§impl<'de> Deserialize<'de> for StatusReply
impl<'de> Deserialize<'de> for StatusReply
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 StatusReply
impl RefUnwindSafe for StatusReply
impl Send for StatusReply
impl Sync for StatusReply
impl Unpin for StatusReply
impl UnwindSafe for StatusReply
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