pub struct KeyReply { /* private fields */ }Expand description
A data structure that maps to this endpoint.
Response fields are captured in KeyData.
Implementations§
Methods from Deref<Target = KeyData>§
Sourcepub fn past_min(&self) -> i32
pub fn past_min(&self) -> i32
Returns the amount of request in the past minute.
This is given by the Hypixel API and as of right now seems to be an inaccurate representation.
Sourcepub fn owner(&self) -> Uuid
pub fn owner(&self) -> Uuid
Returns the UUID of the player that owns the key that this response was requested with.
Sourcepub fn limit(&self) -> i32
pub fn limit(&self) -> i32
Returns the limit this particular key has. Default value is 120 by the API.
Sourcepub fn total_queries(&self) -> i32
pub fn total_queries(&self) -> i32
Returns the total amount of queries that have been executed by this player.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyReply
impl<'de> Deserialize<'de> for KeyReply
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 Copy for KeyReply
Auto Trait Implementations§
impl Freeze for KeyReply
impl RefUnwindSafe for KeyReply
impl Send for KeyReply
impl Sync for KeyReply
impl Unpin for KeyReply
impl UnwindSafe for KeyReply
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