Struct randomorg::GetUsageResult
[−]
[src]
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, }
A random.org response of getUsage
method.
Fields
status: ApiKeyStatus
A 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: NaiveDateTime
A time at which the API key was created.
bits_left: u64
An integer containing the (estimated) number of remaining true random bits available to the client.
requests_left: u64
An integer containing the (estimated) number of remaining API requests available to the client.
total_bits: u64
An integer containing the number of bits used by this API key since it was created.
total_requests: u64
An integer containing the number of requests used by this API key since it was created.
Trait Implementations
impl Debug for GetUsageResult
[src]
impl Clone for GetUsageResult
[src]
fn clone(&self) -> GetUsageResult
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more