[][src]Struct cloudflare::endpoints::zone::Zone

pub struct Zone {
    pub id: String,
    pub name: String,
    pub account: Account,
    pub betas: Option<Vec<String>>,
    pub created_on: DateTime<Utc>,
    pub deactivation_reason: Option<String>,
    pub development_mode: u8,
    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: Vec<String>,
    pub zone_type: Type,
}

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: Account

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: u8

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: 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

impl<'a> Endpoint<Zone, (), ()> for ZoneDetails<'a>[src]

impl ApiResult for Zone[src]

impl Debug for Zone[src]

impl<'de> Deserialize<'de> for Zone[src]

Auto Trait Implementations

impl Send for Zone

impl Sync for Zone

impl Unpin for Zone

impl UnwindSafe for Zone

impl RefUnwindSafe for Zone

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err