pub struct DdnsConfig {
pub enabled: bool,
pub interval: u64,
pub ipv4_urls: Vec<String>,
pub ipv6_urls: Vec<String>,
pub cloudflare: Option<CloudflareDdnsConfig>,
}Expand description
Dynamic DNS configuration.
Fields§
§enabled: boolWhether DDNS updates are enabled.
interval: u64Update interval in seconds.
ipv4_urls: Vec<String>URLs to detect public IPv4 address (tried in order, first success wins).
ipv6_urls: Vec<String>URLs to detect public IPv6 address (empty = disabled).
cloudflare: Option<CloudflareDdnsConfig>Cloudflare DNS provider configuration.
Trait Implementations§
Source§impl Clone for DdnsConfig
impl Clone for DdnsConfig
Source§fn clone(&self) -> DdnsConfig
fn clone(&self) -> DdnsConfig
Returns a duplicate 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 DdnsConfig
impl Debug for DdnsConfig
Source§impl Default for DdnsConfig
impl Default for DdnsConfig
Source§impl<'de> Deserialize<'de> for DdnsConfig
impl<'de> Deserialize<'de> for DdnsConfig
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
Auto Trait Implementations§
impl Freeze for DdnsConfig
impl RefUnwindSafe for DdnsConfig
impl Send for DdnsConfig
impl Sync for DdnsConfig
impl Unpin for DdnsConfig
impl UnsafeUnpin for DdnsConfig
impl UnwindSafe for DdnsConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more