Struct digitalocean::api::Domain
source · pub struct Domain { /* private fields */ }
Expand description
Domain resources are domain names that you have purchased from a domain name registrar that you are managing through the DigitalOcean DNS interface.
Implementations§
source§impl Domain
impl Domain
sourcepub fn name(&self) -> &String
pub fn name(&self) -> &String
The name of the domain itself. This should follow the standard domain format of domain.TLD. For instance, example.com is a valid domain name.
sourcepub fn ttl(&self) -> &Option<usize>
pub fn ttl(&self) -> &Option<usize>
This value is the time to live for the records on this domain, in seconds. This defines the time frame that clients can cache queried information before a refresh should be requested.
sourcepub fn zone_file(&self) -> &Option<String>
pub fn zone_file(&self) -> &Option<String>
This attribute contains the complete contents of the zone file for the selected domain. Individual domain record resources should be used to get more granular control over records. However, this attribute can also be used to get information about the SOA record, which is created automatically and is not accessible as an individual record resource.