pub struct ZoneDocument {
pub format: String,
pub version: u32,
pub zone: Option<String>,
pub exported_at: Option<i64>,
pub records: Vec<ZoneDocRecord>,
pub redirects: Vec<ZoneDocRedirect>,
}Expand description
The dinio-zone document (format: "dinio-zone", version: 1): Core’s own export
format, and what Zones::discover proposes.
Names are relative to the zone (@ is the apex; in-zone names inside data have no
trailing dot, absolute names keep it). Free text (TXT, redirect locations, health
check URLs) is never rewritten. Left out by Core: the apex SOA/NS, values Core keeps
(managed_by) and certificates. Enum values are kept as strings, like the resource
models.
Fields§
§format: StringAlways dinio-zone.
version: u32Document version, 1.
zone: Option<String>The zone it came from; informational, ignored on import.
exported_at: Option<i64>Export time, Unix seconds.
records: Vec<ZoneDocRecord>Record values, one per entry; at most 10 000.
redirects: Vec<ZoneDocRedirect>Redirects of the zone.
Trait Implementations§
Source§impl Clone for ZoneDocument
impl Clone for ZoneDocument
Source§fn clone(&self) -> ZoneDocument
fn clone(&self) -> ZoneDocument
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ZoneDocument
impl Debug for ZoneDocument
Source§impl<'de> Deserialize<'de> for ZoneDocument
impl<'de> Deserialize<'de> for ZoneDocument
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
Source§impl PartialEq for ZoneDocument
impl PartialEq for ZoneDocument
Source§impl Serialize for ZoneDocument
impl Serialize for ZoneDocument
impl StructuralPartialEq for ZoneDocument
Auto Trait Implementations§
impl Freeze for ZoneDocument
impl RefUnwindSafe for ZoneDocument
impl Send for ZoneDocument
impl Sync for ZoneDocument
impl Unpin for ZoneDocument
impl UnsafeUnpin for ZoneDocument
impl UnwindSafe for ZoneDocument
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