Struct digitalocean::api::Domain
[−]
pub struct Domain { /* fields omitted */ }
Domain resources are domain names that you have purchased from a domain name registrar that you are managing through the DigitalOcean DNS interface.
Methods
impl Domain
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.
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.
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.
impl Domain
[src]
fn create<N, I>(name: N, ip_address: I) -> DomainRequest<Create, Domain> where
N: AsRef<str> + Serialize + Display,
I: Into<IpAddr> + Serialize + Display,
N: AsRef<str> + Serialize + Display,
I: Into<IpAddr> + Serialize + Display,
fn list() -> DomainRequest<List, Vec<Domain>>
fn get<N>(name: N) -> DomainRequest<Get, Domain> where
N: AsRef<str> + Display,
N: AsRef<str> + Display,
fn delete<N>(name: N) -> DomainRequest<Delete, ()> where
N: AsRef<str> + Display,
N: AsRef<str> + Display,
Trait Implementations
impl Debug for Domain
[src]
impl Clone for Domain
[src]
fn clone(&self) -> Domain
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more