[][src]Struct doh_dns::DnsAnswer

pub struct DnsAnswer {
    pub name: String,
    pub type: u32,
    pub TTL: u32,
    pub data: String,
}

The data associated for requests returned by the DNS over HTTPS servers.

Fields

name: String

The name of the record.

type: u32

The type associated with each record. To convert to a string representation use Dns::rtype_to_name.

TTL: u32

The time to live in seconds for this record.

data: String

The data associated with the record.

Trait Implementations

impl Clone for DnsAnswer[src]

impl Debug for DnsAnswer[src]

impl Serialize for DnsAnswer[src]

impl<'de> Deserialize<'de> for DnsAnswer[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]