pub struct ImportReport {
pub dry_run: bool,
pub committed: bool,
pub records: ImportRecordsReport,
pub redirects: ImportRedirectsReport,
}Expand description
What an import did, or would do (Zones::import).
Import is a merge: it adds what the zone lacks and never changes or deletes anything. Records go in one transaction (any record error writes none of them); redirects afterwards, each on its own.
Fields§
§dry_run: boolWhether this was a dry run.
committed: boolWhether the records were written: false after a dry run or a record error.
records: ImportRecordsReportThe record part.
redirects: ImportRedirectsReportThe redirect part.
Implementations§
Source§impl ImportReport
impl ImportReport
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Whether any record or redirect failed.
Trait Implementations§
Source§impl Clone for ImportReport
impl Clone for ImportReport
Source§fn clone(&self) -> ImportReport
fn clone(&self) -> ImportReport
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 ImportReport
impl Debug for ImportReport
Source§impl<'de> Deserialize<'de> for ImportReport
impl<'de> Deserialize<'de> for ImportReport
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 ImportReport
impl PartialEq for ImportReport
Source§impl Serialize for ImportReport
impl Serialize for ImportReport
impl StructuralPartialEq for ImportReport
Auto Trait Implementations§
impl Freeze for ImportReport
impl RefUnwindSafe for ImportReport
impl Send for ImportReport
impl Sync for ImportReport
impl Unpin for ImportReport
impl UnsafeUnpin for ImportReport
impl UnwindSafe for ImportReport
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