Type Definition digitalocean::request::DomainRecordRequest
source · pub type DomainRecordRequest<M, V> = Request<M, V>;
Expand description
A type alias with Request<_, DomainRecord>
specific functions.
Implementations§
source§impl DomainRecordRequest<List, Vec<DomainRecord>>
impl DomainRecordRequest<List, Vec<DomainRecord>>
sourcepub fn create<S>(
self,
kind: S,
name: S,
data: S
) -> DomainRecordRequest<Create, DomainRecord>where
S: AsRef<str> + Display + Serialize,
pub fn create<S>(
self,
kind: S,
name: S,
data: S
) -> DomainRecordRequest<Create, DomainRecord>where
S: AsRef<str> + Display + Serialize,
sourcepub fn get(self, id: usize) -> DomainRecordRequest<Get, DomainRecord>
pub fn get(self, id: usize) -> DomainRecordRequest<Get, DomainRecord>
sourcepub fn update(self, id: usize) -> DomainRecordRequest<Update, DomainRecord>
pub fn update(self, id: usize) -> DomainRecordRequest<Update, DomainRecord>
source§impl DomainRecordRequest<Create, DomainRecord>
impl DomainRecordRequest<Create, DomainRecord>
sourcepub fn ttl(self, val: usize) -> Self
pub 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.
source§impl DomainRecordRequest<Update, DomainRecord>
impl DomainRecordRequest<Update, DomainRecord>
sourcepub fn kind<S>(self, val: S) -> Selfwhere
S: AsRef<str> + Display + Serialize,
pub fn kind<S>(self, val: S) -> Selfwhere
S: AsRef<str> + Display + Serialize,
The record type (A, MX, CNAME, etc).
sourcepub fn name<S>(self, val: S) -> Selfwhere
S: AsRef<str> + Display + Serialize,
pub fn name<S>(self, val: S) -> Selfwhere
S: AsRef<str> + Display + Serialize,
The host name, alias, or service being defined by the record.
sourcepub fn data<S>(self, val: S) -> Selfwhere
S: AsRef<str> + Display + Serialize,
pub fn data<S>(self, val: S) -> Selfwhere
S: AsRef<str> + Display + Serialize,
Variable data depending on record type. See the Domain Records section for more detail on each record type.
sourcepub fn ttl(self, val: usize) -> Self
pub 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.