pub struct DriftReport {
pub changed: Vec<ChangedEntry>,
pub missing: Vec<DriftEntry>,
pub extra: Vec<DriftEntry>,
}Expand description
read-only report of how observed backend state diverges from declared intent.
built from a Plan (the diff already computed by plan()): updates become
changed, creates become
missing (declared but absent from the backend), and
deletes become extra (present on the backend but not
declared). it is a one-way projection only, never a write path.
Fields§
§changed: Vec<ChangedEntry>objects present in both intent and backend but with diverging fields.
missing: Vec<DriftEntry>objects declared in intent but absent from the backend.
extra: Vec<DriftEntry>objects present in the backend but not declared in intent.
Implementations§
Trait Implementations§
Source§impl Clone for DriftReport
impl Clone for DriftReport
Source§fn clone(&self) -> DriftReport
fn clone(&self) -> DriftReport
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 DriftReport
impl Debug for DriftReport
Source§impl Default for DriftReport
impl Default for DriftReport
Source§fn default() -> DriftReport
fn default() -> DriftReport
Returns the “default value” for a type. Read more
Source§impl Display for DriftReport
impl Display for DriftReport
Source§impl From<&Plan> for DriftReport
impl From<&Plan> for DriftReport
Source§impl PartialEq for DriftReport
impl PartialEq for DriftReport
Source§fn eq(&self, other: &DriftReport) -> bool
fn eq(&self, other: &DriftReport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DriftReport
impl Serialize for DriftReport
impl StructuralPartialEq for DriftReport
Auto Trait Implementations§
impl Freeze for DriftReport
impl RefUnwindSafe for DriftReport
impl Send for DriftReport
impl Sync for DriftReport
impl Unpin for DriftReport
impl UnsafeUnpin for DriftReport
impl UnwindSafe for DriftReport
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