pub struct KeyData { /* private fields */ }Expand description
The response data corresponding to this endpoint.
All fields are captured, except the repetition
of the actual ApiKey used to send the request.
(This being due to security reasons)
Implementations§
Source§impl KeyData
impl 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 KeyData
impl<'de> Deserialize<'de> for KeyData
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 KeyData
Auto Trait Implementations§
impl Freeze for KeyData
impl RefUnwindSafe for KeyData
impl Send for KeyData
impl Sync for KeyData
impl Unpin for KeyData
impl UnwindSafe for KeyData
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