Type Definition digitalocean::request::DomainRecordRequest
[−]
type DomainRecordRequest<M, V> = Request<M, V>;
A type alias with Request<_, DomainRecord>
specific functions.
Methods
impl DomainRecordRequest<List, Vec<DomainRecord>>
[src]
fn create<S>(
self,
kind: S,
name: S,
data: S
) -> DomainRecordRequest<Create, DomainRecord> where
S: AsRef<str> + Display + Serialize,
self,
kind: S,
name: S,
data: S
) -> DomainRecordRequest<Create, DomainRecord> where
S: AsRef<str> + Display + Serialize,
fn get(self, id: usize) -> DomainRecordRequest<Get, DomainRecord>
fn update(self, id: usize) -> DomainRecordRequest<Update, DomainRecord>
fn delete(self, id: usize) -> DomainRecordRequest<Delete, ()>
impl DomainRecordRequest<Create, DomainRecord>
[src]
fn priority(self, val: Option<usize>) -> Self
The priority for SRV and MX records.
fn port(self, val: Option<usize>) -> Self
The port for SRV records.
fn ttl(self, val: usize) -> Self
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.
fn weight(self, val: Option<usize>) -> Self
The weight for SRV records.
impl DomainRecordRequest<Update, DomainRecord>
[src]
fn kind<S>(self, val: S) -> Self where
S: AsRef<str> + Display + Serialize,
S: AsRef<str> + Display + Serialize,
The record type (A, MX, CNAME, etc).
fn name<S>(self, val: S) -> Self where
S: AsRef<str> + Display + Serialize,
S: AsRef<str> + Display + Serialize,
The host name, alias, or service being defined by the record.
fn data<S>(self, val: S) -> Self where
S: AsRef<str> + Display + Serialize,
S: AsRef<str> + Display + Serialize,
Variable data depending on record type. See the Domain Records section for more detail on each record type.
fn priority(self, val: Option<usize>) -> Self
The priority for SRV and MX records.
fn port(self, val: Option<usize>) -> Self
The port for SRV records.
fn ttl(self, val: usize) -> Self
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.
fn weight(self, val: Option<usize>) -> Self
The weight for SRV records.