pub struct Authorization {
    pub identifier: Identifier,
    pub status: AuthorizationStatus,
    pub expires: Option<String>,
    pub challenges: Vec<Challenge>,
    pub wildcard: Option<bool>,
    /* private fields */
}
Expand description

An autorization represents the server’s authorization of a certain domain being represented by an account.

Fields

identifier: Identifier

The identifier (domain) that the account is authorized to represent.

status: AuthorizationStatus

The status of this authorization.

expires: Option<String>

The timestamp after which the server will consider this authorization invalid.

challenges: Vec<Challenge>

For pending authorizations, the challenges that the client can fulfill in order to prove possession of the identifier. For valid authorizations, the challenge that was validated. For invalid authorizations, the challenge that was attempted and failed.

wildcard: Option<bool>

Whether this authorization was created for a wildcard identifier (domain).

Implementations

Get a certain type of challenge to complete.

Example: http-01, or dns-01

Update the authorization to match the current server state.

Most users should use Authorization::wait_done.

Wait for the authorization to go into a state other than AuthorizationStatus::Pending.

This will only happen once one of the challenges in an authorization is completed. You can use Challenge::wait_done to wait until this is the case.

Will complete immediately if the authorization is already in a state other than AuthorizationStatus::Pending.

Specify the interval at which to poll the acme server, and how often to attempt polling before timing out. Polling should not happen faster than about every 5 seconds to avoid rate limits in the acme server.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. 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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more