pub struct DomainRecord { /* private fields */ }
Expand description

Domain record resources are used to set or retrieve information about the individual DNS records configured for a domain. This allows you to build and manage DNS zone files by adding and modifying individual records for a domain.

Requests with this output this type are accessed via Domain::get(..).records(). Make sure to check the functions in DomainRecordRequest

Digital Ocean Documentation.

Implementations§

A unique identifier for each domain record.

The type of the DNS record (ex: A, CNAME, TXT, …).

Note: Since type is a keyword in Rust kind is used instead.

The name to use for the DNS record.

The value to use for the DNS record.

The priority for SRV and MX records.

The port for SRV records.

This value is the time to live for the record, in seconds. This defines the time frame that clients can cache queried information before a refresh should be requested.

The weight for SRV records.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. 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

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. 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.