pub struct SnapshotDiff {
pub contract_id: String,
pub entries: Vec<DiffEntry>,
}Expand description
The complete result of diffing two StorageSnapshots.
Fields§
§contract_id: StringContract these snapshots describe.
entries: Vec<DiffEntry>All entries across both snapshots.
Implementations§
Source§impl SnapshotDiff
impl SnapshotDiff
Sourcepub fn actionable(&self) -> impl Iterator<Item = &DiffEntry>
pub fn actionable(&self) -> impl Iterator<Item = &DiffEntry>
Return only the entries that need remediation (removed or expiring soon).
Trait Implementations§
Source§impl Clone for SnapshotDiff
impl Clone for SnapshotDiff
Source§impl Debug for SnapshotDiff
impl Debug for SnapshotDiff
Source§impl Default for SnapshotDiff
impl Default for SnapshotDiff
Source§impl<'de> Deserialize<'de> for SnapshotDiff
impl<'de> Deserialize<'de> for SnapshotDiff
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 SnapshotDiff
impl PartialEq for SnapshotDiff
Source§impl Serialize for SnapshotDiff
impl Serialize for SnapshotDiff
impl StructuralPartialEq for SnapshotDiff
Auto Trait Implementations§
impl Freeze for SnapshotDiff
impl RefUnwindSafe for SnapshotDiff
impl Send for SnapshotDiff
impl Sync for SnapshotDiff
impl Unpin for SnapshotDiff
impl UnsafeUnpin for SnapshotDiff
impl UnwindSafe for SnapshotDiff
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