pub struct AutoCertBuilder { /* private fields */ }
Available on crate features
server
and acme
only.Expand description
ACME configuration builder
Implementations
sourceimpl AutoCertBuilder
impl AutoCertBuilder
sourcepub fn directory_url(self, directory_url: impl Into<String>) -> Self
pub fn directory_url(self, directory_url: impl Into<String>) -> Self
Sets the directory url.
Defaults to LETS_ENCRYPT_PRODUCTION
sourcepub fn contact(self, email: impl Into<String>) -> Self
pub fn contact(self, email: impl Into<String>) -> Self
Add a contact email for the ACME account.
sourcepub fn challenge_type(self, challenge_type: ChallengeType) -> Self
pub fn challenge_type(self, challenge_type: ChallengeType) -> Self
Sets the challenge type
Defaults to ChallengeType::TlsAlpn01
sourcepub fn cache_path(self, path: impl Into<PathBuf>) -> Self
pub fn cache_path(self, path: impl Into<PathBuf>) -> Self
Sets the cache path for caching certificates.
This is not a necessary option. If you do not configure the cache path, the obtained certificate will be stored in memory and will need to be obtained again when the server is restarted next time.
Auto Trait Implementations
impl RefUnwindSafe for AutoCertBuilder
impl Send for AutoCertBuilder
impl Sync for AutoCertBuilder
impl Unpin for AutoCertBuilder
impl UnwindSafe for AutoCertBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more