#[non_exhaustive]pub struct DomainPolicy {
pub reserved: ReservedDomains,
pub pending_ttl: Duration,
pub verification_min_interval: Duration,
pub verification_max_attempts: i32,
pub upload_trust: UploadTrust,
}Expand description
Rules for registering, verifying and certifying domains.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.reserved: ReservedDomainsNames no tenant may register. Put the platform’s own hostnames here.
pending_ttl: DurationHow long an unverified registration holds its name.
After this a pending (or failed) row stops blocking the name: the next registration of it by anyone removes the stale row, and the stale row can no longer be verified. Otherwise a tenant could register a name it does not control and hold it against its real owner indefinitely. The verification challenge expires at the same moment. Seven days.
verification_min_interval: DurationThe shortest gap allowed between two verification attempts for one domain. Each attempt makes outbound DNS or HTTP requests. Ten seconds.
verification_max_attempts: i32How many verification attempts one registration gets. After that, the tenant has to delete and re-add the domain. Fifty.
upload_trust: UploadTrustWhat an uploaded certificate chain must chain to.
Trait Implementations§
Source§impl Clone for DomainPolicy
impl Clone for DomainPolicy
Source§impl Debug for DomainPolicy
impl Debug for DomainPolicy
Auto Trait Implementations§
impl Freeze for DomainPolicy
impl RefUnwindSafe for DomainPolicy
impl Send for DomainPolicy
impl Sync for DomainPolicy
impl Unpin for DomainPolicy
impl UnsafeUnpin for DomainPolicy
impl UnwindSafe for DomainPolicy
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
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> ⓘ
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