Struct rustdns::Record[][src]

pub struct Record {
    pub name: String,
    pub type: Type,
    pub class: Class,
    pub ttl: Duration,
    pub resource: Resource,
}
Expand description

Resource Record (RR) returned by DNS servers containing a answer to the question.

Fields

name: String

A valid UTF-8 encoded domain name.

type: Type

The resource’s type.

class: Class

The resource’s class.

ttl: Duration

The number of seconds that the resource record may be cached before the source of the information should again be consulted. Zero is interpreted to mean that the RR can only be used for the transaction in progress.

resource: Resource

The actual resource.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.