Struct digitalocean::prelude::DomainRecord
source · 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
Implementations§
source§impl DomainRecord
impl DomainRecord
sourcepub fn kind(&self) -> &String
pub fn kind(&self) -> &String
The type of the DNS record (ex: A, CNAME, TXT, …).
Note: Since type
is a keyword in Rust kind
is used instead.
Trait Implementations§
source§impl Clone for DomainRecord
impl Clone for DomainRecord
source§fn clone(&self) -> DomainRecord
fn clone(&self) -> DomainRecord
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DomainRecord
impl Debug for DomainRecord
source§impl<'de> Deserialize<'de> for DomainRecord
impl<'de> Deserialize<'de> for DomainRecord
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more