pub struct AcmeConfig { /* private fields */ }Available on crate feature
server only.Expand description
Configuration for the ACME client.
Implementations§
Source§impl AcmeConfig
impl AcmeConfig
Sourcepub fn new(directory_url: String) -> Self
pub fn new(directory_url: String) -> Self
Creates a new AcmeConfig with a ACME directory URL.
Sourcepub fn letsencrypt(production: bool) -> Self
pub fn letsencrypt(production: bool) -> Self
Creates a new AcmeConfig with the Let’s Encrypt directory URL.
Sourcepub fn domains(self, domains: Vec<String>) -> Self
pub fn domains(self, domains: Vec<String>) -> Self
Provides the list of domains for which certificates should be obtained.
Sourcepub fn contact(self, contact: Vec<String>) -> Self
pub fn contact(self, contact: Vec<String>) -> Self
Provides a list of contacts for the account.
Note that email addresses must include a mailto: prefix.
Sourcepub fn cache_path(self, path: PathBuf) -> Self
pub fn cache_path(self, path: PathBuf) -> Self
Sets the directory where to cache certificates.
If not called certificates will not be cached.
Sourcepub fn tls_config(self, tls_config: CaTlsConfig) -> Self
pub fn tls_config(self, tls_config: CaTlsConfig) -> Self
Sets the CaTlsConfig used to verify the ACME server’s TLS certificate.
Defaults to CaTlsConfig::embedded. Set a config with extra roots when targeting
an ACME server whose certificate is not signed by a publicly trusted CA, such as a
local test server.
Trait Implementations§
Source§impl Clone for AcmeConfig
impl Clone for AcmeConfig
Source§fn clone(&self) -> AcmeConfig
fn clone(&self) -> AcmeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AcmeConfig
impl !RefUnwindSafe for AcmeConfig
impl Send for AcmeConfig
impl Sync for AcmeConfig
impl Unpin for AcmeConfig
impl !UnwindSafe for AcmeConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more