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 Clone for GetUsageResult[src]

impl Debug for GetUsageResult[src]

impl<'de> Deserialize<'de> for GetUsageResult[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.