pub struct DriftReport {
pub modified: Vec<DriftEntry>,
pub added: Vec<String>,
pub removed: Vec<String>,
pub has_drift: bool,
}Expand description
Result of drift detection
Fields§
§modified: Vec<DriftEntry>Files that were modified since baseline
added: Vec<String>Files that were added since baseline
removed: Vec<String>Files that were removed since baseline
has_drift: boolWhether any drift was detected
Implementations§
Source§impl DriftReport
impl DriftReport
Sourcepub fn format_terminal(&self) -> String
pub fn format_terminal(&self) -> String
Format the drift report for terminal output
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 · 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<'de> Deserialize<'de> for DriftReport
impl<'de> Deserialize<'de> for DriftReport
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 DriftReport
impl RefUnwindSafe for DriftReport
impl Send for DriftReport
impl Sync for DriftReport
impl Unpin 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