[][src]Enum cloudflare::endpoints::dns::DnsContent

pub enum DnsContent {
    A {
        content: Ipv4Addr,
    },
    AAAA {
        content: Ipv6Addr,
    },
    CNAME {
        content: String,
    },
    NS {
        content: String,
    },
    MX {
        content: String,
        priority: u16,
    },
    TXT {
        content: String,
    },
}

Type of the DNS record, along with the associated value. When we add support for other types (LOC/SRV/...), the meta field should also probably be encoded here as an associated, strongly typed value.

Variants

A

Fields of A

content: Ipv4Addr
AAAA

Fields of AAAA

content: Ipv6Addr
CNAME

Fields of CNAME

content: String
NS

Fields of NS

content: String
MX

Fields of MX

content: Stringpriority: u16
TXT

Fields of TXT

content: String

Trait Implementations

impl Clone for DnsContent[src]

impl Debug for DnsContent[src]

impl Serialize for DnsContent[src]

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

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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