pub struct Zone {Show 22 fields
pub id: String,
pub name: String,
pub account: AccountDetails,
pub betas: Option<Vec<String>>,
pub created_on: DateTime<Utc>,
pub deactivation_reason: Option<String>,
pub development_mode: i32,
pub host: Option<HostingPartner>,
pub meta: Meta,
pub modified_on: DateTime<Utc>,
pub name_servers: Vec<String>,
pub original_dnshost: Option<String>,
pub original_name_servers: Option<Vec<String>>,
pub original_registrar: Option<String>,
pub owner: Owner,
pub paused: bool,
pub permissions: Vec<String>,
pub plan: Option<Plan>,
pub plan_pending: Option<Plan>,
pub status: Status,
pub vanity_name_servers: Option<Vec<String>>,
pub zone_type: Type,
}
Expand description
A Zone is a domain name along with its subdomains and other identities https://api.cloudflare.com/#zone-properties
Fields
id: String
Zone identifier tag
name: String
The domain name
account: AccountDetails
Information about the account the zone belongs to
betas: Option<Vec<String>>
A list of beta features in which the zone is participating
created_on: DateTime<Utc>
When the zone was created
deactivation_reason: Option<String>
Exists only with a deactivated status and indicates the reason the zone is not resolving on the Cloudflare network.
development_mode: i32
The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is 0.
host: Option<HostingPartner>
Hosting partner information, if the zone signed up via a Cloudflare hosting partner
meta: Meta
Metadata about the domain.
modified_on: DateTime<Utc>
When the zone was last modified
name_servers: Vec<String>
Cloudflare-assigned name servers. This is only populated for zones that use Cloudflare DNS
original_dnshost: Option<String>
DNS host at the time of switching to Cloudflare
original_name_servers: Option<Vec<String>>
Original name servers before moving to Cloudflare
original_registrar: Option<String>
Registrar for the domain at the time of switching to Cloudflare
owner: Owner
Information about the owner of the zone
paused: bool
Indicates if the zone is only using Cloudflare DNS services. A true value means the zone will not receive security or performance benefits.
permissions: Vec<String>
Available permissions on the zone for the current user requesting the item
plan: Option<Plan>
A zone plan
plan_pending: Option<Plan>
A zone plan
status: Status
Status of the zone
vanity_name_servers: Option<Vec<String>>
An array of domains used for custom name servers. This is only available for Business and Enterprise plans.
zone_type: Type
A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Zone
impl<'de> Deserialize<'de> for Zone
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
impl ApiResult for Zone
Auto Trait Implementations
impl RefUnwindSafe for Zone
impl Send for Zone
impl Sync for Zone
impl Unpin for Zone
impl UnwindSafe for Zone
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> 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