pub struct GetUsageResult {
pub status: ApiKeyStatus,
pub creation_time: NaiveDateTime,
pub bits_left: u64,
pub requests_left: u64,
pub total_bits: u64,
pub total_requests: u64,
}Expand description
A random.org response of getUsage method.
Fields§
§status: ApiKeyStatusA string indicating the API key’s current status, which may be stopped, paused or running. An API key must be running for it to be able to serve requests.
creation_time: NaiveDateTimeA time at which the API key was created.
bits_left: u64An integer containing the (estimated) number of remaining true random bits available to the client.
requests_left: u64An integer containing the (estimated) number of remaining API requests available to the client.
total_bits: u64An integer containing the number of bits used by this API key since it was created.
total_requests: u64An integer containing the number of requests used by this API key since it was created.
Trait Implementations§
Source§impl Clone for GetUsageResult
impl Clone for GetUsageResult
Source§fn clone(&self) -> GetUsageResult
fn clone(&self) -> GetUsageResult
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 GetUsageResult
impl Debug for GetUsageResult
Source§impl<'de> Deserialize<'de> for GetUsageResult
impl<'de> Deserialize<'de> for GetUsageResult
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 GetUsageResult
impl RefUnwindSafe for GetUsageResult
impl Send for GetUsageResult
impl Sync for GetUsageResult
impl Unpin for GetUsageResult
impl UnwindSafe for GetUsageResult
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