pub enum Environment {
Staging,
Production,
}Expand description
Which Let’s Encrypt directory a certificate is requested against.
Variants§
Staging
https://acme-staging-v02.api.letsencrypt.org/directory. Untrusted
certificates, generous rate limits. The default.
Production
https://acme-v02.api.letsencrypt.org/directory. Trusted
certificates, strict rate limits.
Implementations§
Source§impl Environment
impl Environment
Sourcepub fn directory_url(&self) -> &'static str
pub fn directory_url(&self) -> &'static str
The ACME directory URL for this environment.
Sourcepub fn issuer_domain(&self) -> &'static str
pub fn issuer_domain(&self) -> &'static str
The issuer domain to name in this zone’s CAA record.
Both environments are Let’s Encrypt, so both answer the same thing:
RFC 8659’s issue property names the authority, not the directory,
and staging and production are two directories of one authority. It
is derived from this enum rather than configured so that the record
authorising an issuer and the directory the order is placed against
cannot be made to disagree — a CAA record naming an authority this
deployment does not use is an outage at the next renewal.
A one-line, hard-to-miss statement of which environment this is — meant for a startup log line, not for parsing.
Trait Implementations§
Source§impl Clone for Environment
impl Clone for Environment
Source§fn clone(&self) -> Environment
fn clone(&self) -> Environment
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Environment
impl Debug for Environment
Source§impl Default for Environment
impl Default for Environment
Source§fn default() -> Environment
fn default() -> Environment
Source§impl Display for Environment
impl Display for Environment
Source§impl PartialEq for Environment
impl PartialEq for Environment
Source§fn eq(&self, other: &Environment) -> bool
fn eq(&self, other: &Environment) -> bool
self and other values to be equal, and is used by ==.impl Copy for Environment
impl Eq for Environment
impl StructuralPartialEq for Environment
Auto Trait Implementations§
impl Freeze for Environment
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnsafeUnpin for Environment
impl UnwindSafe for Environment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.