pub struct PlayerReply { /* private fields */ }Expand description
A data structure that maps to this endpoint.
Response fields are captured in PlayerData.
Implementations§
Source§impl PlayerReply
impl PlayerReply
Sourcepub fn success(&self) -> bool
pub fn success(&self) -> bool
Returns whether the response was successful.
This should always return true. (not guaranteed though)
Sourcepub fn player(&self) -> Option<&PlayerData>
pub fn player(&self) -> Option<&PlayerData>
Returns the data associated with the requested player.
If this function returns Option::None, the player isn’t linked
to any data on hypixel. (And thus can be a nick)
Trait Implementations§
Source§impl Clone for PlayerReply
impl Clone for PlayerReply
Source§fn clone(&self) -> PlayerReply
fn clone(&self) -> PlayerReply
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 PlayerReply
impl Debug for PlayerReply
Source§impl<'de> Deserialize<'de> for PlayerReply
impl<'de> Deserialize<'de> for PlayerReply
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 PlayerReply
impl RefUnwindSafe for PlayerReply
impl Send for PlayerReply
impl Sync for PlayerReply
impl Unpin for PlayerReply
impl UnwindSafe for PlayerReply
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