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

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.

A time at which the API key was created.

An integer containing the (estimated) number of remaining true random bits available to the client.

An integer containing the (estimated) number of remaining API requests available to the client.

An integer containing the number of bits used by this API key since it was created.

An integer containing the number of requests used by this API key since it was created.

Trait Implementations

impl Debug for GetUsageResult
[src]

Formats the value using the given formatter.

impl Clone for GetUsageResult
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more