pub struct Zone {
pub records: Vec<Record>,
pub zones: IndexMap<Name, Zone>,
pub soa: Option<SoaData>,
pub nameservers: Vec<Name>,
pub tsig_keys: IndexMap<String, TsigKey>,
pub authoritative: bool,
pub class: Class,
pub allow_md5_tsig: bool,
}
Fields§
§records: Vec<Record>
§zones: IndexMap<Name, Zone>
§soa: Option<SoaData>
§nameservers: Vec<Name>
§tsig_keys: IndexMap<String, TsigKey>
§class: Class
§allow_md5_tsig: bool
Implementations§
source§impl Zone
impl Zone
pub fn merge_from(&mut self, other: Zone)
pub fn answer( &self, parent_zone: Option<&Zone>, zone_name: &Name, question: &Question, response: &mut ZoneAnswer ) -> AnswerState
Trait Implementations§
source§impl<'de> Deserialize<'de> for Zone
impl<'de> Deserialize<'de> for Zone
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 RefUnwindSafe for Zone
impl Send for Zone
impl Sync for Zone
impl Unpin for Zone
impl UnwindSafe for Zone
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