pub enum ZoneTypeConfig {
Primary(ServerZoneConfig),
Secondary(ServerZoneConfig),
External {
stores: Vec<ExternalStoreConfig>,
},
}Expand description
Enumeration over each zone type’s configuration.
Variants§
Primary(ServerZoneConfig)
Secondary(ServerZoneConfig)
External
Fields
§
stores: Vec<ExternalStoreConfig>Store configurations. Note: we specify a default handler to get a Vec containing a StoreConfig::Default, which is used for authoritative file-based zones and legacy sqlite configurations. #[serde(default)] cannot be used, because it will invoke Default for Vec, i.e., an empty Vec and we cannot implement Default for StoreConfig and return a Vec. The custom visitor is used to handle map (single store) or sequence (chained store) configurations.
Implementations§
Source§impl ZoneTypeConfig
impl ZoneTypeConfig
pub fn as_server(&self) -> Option<&ServerZoneConfig>
Trait Implementations§
Source§impl Debug for ZoneTypeConfig
impl Debug for ZoneTypeConfig
Source§impl<'de> Deserialize<'de> for ZoneTypeConfig
impl<'de> Deserialize<'de> for ZoneTypeConfig
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 ZoneTypeConfig
impl RefUnwindSafe for ZoneTypeConfig
impl Send for ZoneTypeConfig
impl Sync for ZoneTypeConfig
impl Unpin for ZoneTypeConfig
impl UnwindSafe for ZoneTypeConfig
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