Struct authy::Client

source ·
pub struct Client {
    pub retry_count: u8,
    pub retry_wait: u16,
    /* private fields */
}
Expand description

The Authy REST client.

This allows the rest of this library to interact with the Authy API service.

Fields

retry_count: u8

Configure the client to retry the request retry_count number of times when the service is unavailable.

retry_wait: u16

Duration of time to wait between retry attempts.

Implementations

Create a new client to the Authy service.

Send a get request to the Authy service. This is intended to be used by the library and not the user.

Send a post request to the Authy service. This is intended to be used by the library and not the user.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.