Struct duckdns::DuckDns
[−]
[src]
pub struct DuckDns { /* fields omitted */ }
Configuration builder object.
Methods
impl DuckDns
[src]
fn new<S: AsRef<str>>(token: S) -> Self
[src]
Creates new instance of DuckDns
updater with your private token.
fn domains<S: AsRef<str>>(self, domains: S) -> Self
[src]
Specifies which domain or list of domains to update (comma separated list in case of multiple domains)
fn ipv4<S: AsRef<str>>(self, ipv4: S) -> Self
[src]
Specifies an explicit IPv4 address for the update. Without it DuckDNS service will use the source of your request for the update.
fn ipv6<S: AsRef<str>>(self, ipv6: S) -> Self
[src]
Specifies an explicit IPv6 address for the update.
fn ip(self, ip: IpAddr) -> Self
[src]
Specifies an explicit IP address as an `IpAddr' object. Handles both V4 and V6 variants internally.
fn verbose(self) -> Self
[src]
Asks for verbose output.
fn clear(self) -> Self
[src]
Directs DuckDNS to clear your record.
fn update(&self) -> Result<()>
[src]
Executes actual update call to the DuckDNS service