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

An builder that is used to create / retrieve an Account from the ACME server.

Implementations

This creates a new AccountBuilder. This can be used to create a new account (if the server has not seen the private key before), or to retrieve an existing account (using a previously used private key).

The private key that is used to sign requests to the ACME server. This may not be the same as a certificate private key.

The contact information for the account. For example this could be a vec!["email:hello@lcas.dev".to_string()]. The supported contact types vary from one ACME server to another.

If you agree to the ACME server terms of service.

Do not try to create a new account. If this is set, only an existing account will be returned.

This will create / retrieve an Account from the ACME server.

If the AccountBuilder does not contain a private key, a new 4096 bit RSA key will be generated (using the system random). If a key is generated, it can be retrieved from the created Account through the Account::private_key method.

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.

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