Struct tide_acme::AcmeConfig[][src]

pub struct AcmeConfig { /* fields omitted */ }

Configuration for registering a certificate via ACME.

Implementations

impl AcmeConfig[src]

pub fn new() -> Self[src]

Create a new configuration builder to register a certificate.

By default, this registers certificates in the Let’s Encrypt staging environment.

pub fn domains(self, domains: Vec<String>) -> Self[src]

Register a certificate for the specified domains.

The list of domains must not be empty.

pub fn production(self) -> Self[src]

Register the certificate in the Let’s Encrypt production environment.

If not set, defaults to the Let’s Encrypt staging environment.

Note that the production environment has strict rate limits. Use the default staging environment for test purposes.

pub fn acme_api_url(self, environment: &'static str) -> Self[src]

Set the ACME API URL to use to register the certificate.

If not set, defaults to the Let’s Encrypt staging environment.

pub fn cache_dir(self, cache_dir: impl AsRef<Path>) -> Self[src]

Set the persistent cache directory to remember registered certificates between runs. (Required.)

Keep this directory private and secure.

pub fn server_config(self, server_config: ServerConfig) -> Self[src]

Set the TLS server configuration.

If not set, uses the rustls default configuration.

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> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

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

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,