pub struct DnsSection {
pub provider: Option<String>,
pub zone_id: Option<String>,
pub may_create_zones: Option<bool>,
}Expand description
DNS provider selection, once dns-providers
lands a second backend.
Reload: needs a restart. A provider swap changes which credential the process holds open.
Fields§
§provider: Option<String>Which DnsProvider to construct: loopback, wildcard, route53,
or a name a later backend adds.
zone_id: Option<String>The zone id the provider writes, when the provider needs one beyond
zone.zone itself (Route53’s hosted zone id, for instance).
may_create_zones: Option<bool>Whether this deployment may create new zones by writing NS records
into the zone above the one it is creating.
Two postures exist. Create needs write access above the zone it
delegates, and this is what turns that on. Use handed zones — an
operator creates the delegation out of band and hands over an
already-hosted zone — needs nothing above it, and is the recommended
posture; it is also what None (the default) means, so a deployment
gets it without an operator having to opt in. Left unset, a create
attempt is refused at the point of decision rather than surfacing
later as an access-denied error from the DNS provider itself.
Trait Implementations§
Source§impl Clone for DnsSection
impl Clone for DnsSection
Source§fn clone(&self) -> DnsSection
fn clone(&self) -> DnsSection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DnsSection
impl Debug for DnsSection
Source§impl Default for DnsSection
impl Default for DnsSection
Source§fn default() -> DnsSection
fn default() -> DnsSection
Source§impl<'de> Deserialize<'de> for DnsSection
impl<'de> Deserialize<'de> for DnsSection
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>,
Source§impl PartialEq for DnsSection
impl PartialEq for DnsSection
Source§fn eq(&self, other: &DnsSection) -> bool
fn eq(&self, other: &DnsSection) -> bool
self and other values to be equal, and is used by ==.