Struct Zone

Source
pub struct Zone {
Show 22 fields 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,
}
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: 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§

Source§

impl Debug for Zone

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Zone

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<'a> Endpoint<Zone> for ZoneDetails<'a>

Source§

fn method(&self) -> Method

Source§

fn path(&self) -> String

Source§

fn query(&self) -> Option<QueryType>

Source§

fn body(&self) -> Option<BodyType>

Source§

fn url(&self, environment: &Environment) -> Url

Source§

fn content_type(&self) -> String

Source§

impl ApiResult for Zone

Auto Trait Implementations§

§

impl Freeze for Zone

§

impl RefUnwindSafe for Zone

§

impl Send for Zone

§

impl Sync for Zone

§

impl Unpin for Zone

§

impl UnwindSafe for Zone

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

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

Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Err>

Source§

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,