pub struct Domain {Show 15 fields
pub id: Uuid,
pub tenant_id: Uuid,
pub domain: String,
pub verification_status: VerificationStatus,
pub verification_method: VerificationMethod,
pub verification_token: String,
pub verification_attempts: i32,
pub verified_at: Option<DateTime<Utc>>,
pub last_verification_attempt: Option<DateTime<Utc>>,
pub ssl_status: SslStatus,
pub ssl_provider: SslProvider,
pub ssl_expires_at: Option<DateTime<Utc>>,
pub enabled: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
A custom domain.
Fields§
§id: UuidPrimary key.
tenant_id: UuidThe tenant that owns this domain.
domain: StringThe name itself, globally unique across all tenants. Not updatable: it
is what Self::verification_token proves control of.
verification_status: VerificationStatusWhether ownership has been proved.
verification_method: VerificationMethodHow ownership is to be proved. DNS is the default, and the sound one.
verification_token: StringThe secret the challenge carries. Bearer-equivalent for this domain.
verification_attempts: i32How many verification attempts have been made.
verified_at: Option<DateTime<Utc>>When verification succeeded, if it has.
last_verification_attempt: Option<DateTime<Utc>>When verification was last attempted.
ssl_status: SslStatusWhere the certificate has got to. pending is the issuance worker’s
inbox.
ssl_provider: SslProviderWhere the certificate comes from.
ssl_expires_at: Option<DateTime<Utc>>When the current certificate expires, if there is one.
enabled: boolWhether the proxy should serve this domain. Set independently of verification, so a verified domain can be taken out of service.
created_at: DateTime<Utc>When the domain was registered.
updated_at: DateTime<Utc>When it last changed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Domain
impl<'de> Deserialize<'de> for Domain
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for Domain
impl RefUnwindSafe for Domain
impl Send for Domain
impl Sync for Domain
impl Unpin for Domain
impl UnsafeUnpin for Domain
impl UnwindSafe for Domain
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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