pub struct Token { /* private fields */ }
Expand description

The access token is acquired at the required timing. It will check the expiration date at the time of request and update it if it has expired.

Implementations

Create a token using the default settings.

Get the value of the authorization header. If it has expired, it will be updated automatically.

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.