Struct ngrok_api::types::ReservedDomain
source · [−]pub struct ReservedDomain {
pub id: String,
pub uri: String,
pub created_at: String,
pub description: String,
pub metadata: String,
pub domain: String,
pub region: String,
pub cname_target: Option<String>,
pub certificate: Option<Ref>,
pub certificate_management_policy: Option<ReservedDomainCertPolicy>,
pub certificate_management_status: Option<ReservedDomainCertStatus>,
pub acme_challenge_cname_target: Option<String>,
}
Fields
id: String
unique reserved domain resource identifier
uri: String
URI of the reserved domain API resource
created_at: String
timestamp when the reserved domain was created, RFC 3339 format
description: String
human-readable description of what this reserved domain will be used for
metadata: String
arbitrary user-defined machine-readable data of this reserved domain. Optional, max 4096 bytes.
domain: String
hostname of the reserved domain
region: String
reserve the domain in this geographic ngrok datacenter. Optional, default is us. (au, eu, ap, us, jp, in, sa)
cname_target: Option<String>
DNS CNAME target for a custom hostname, or null if the reserved domain is a subdomain of *.ngrok.io
certificate: Option<Ref>
object referencing the TLS certificate used for connections to this domain. This can be either a user-uploaded certificate, the most recently issued automatic one, or null otherwise.
certificate_management_policy: Option<ReservedDomainCertPolicy>
configuration for automatic management of TLS certificates for this domain, or null if automatic management is disabled
certificate_management_status: Option<ReservedDomainCertStatus>
status of the automatic certificate management for this domain, or null if automatic management is disabled
acme_challenge_cname_target: Option<String>
DNS CNAME target for the host _acme-challenge.example.com, where example.com is your reserved domain name. This is required to issue certificates for wildcard, non-ngrok reserved domains. Must be null for non-wildcard domains and ngrok subdomains.
Trait Implementations
sourceimpl Clone for ReservedDomain
impl Clone for ReservedDomain
sourcefn clone(&self) -> ReservedDomain
fn clone(&self) -> ReservedDomain
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ReservedDomain
impl Debug for ReservedDomain
sourceimpl Default for ReservedDomain
impl Default for ReservedDomain
sourcefn default() -> ReservedDomain
fn default() -> ReservedDomain
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ReservedDomain
impl<'de> Deserialize<'de> for ReservedDomain
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for ReservedDomain
impl Serialize for ReservedDomain
Auto Trait Implementations
impl RefUnwindSafe for ReservedDomain
impl Send for ReservedDomain
impl Sync for ReservedDomain
impl Unpin for ReservedDomain
impl UnwindSafe for ReservedDomain
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more