pub struct MemoryAnchor {
pub key: String,
pub blob: Option<String>,
pub path: Option<String>,
}Expand description
Where a record is anchored, as captured when it was written.
blob and path are the evidence at capture time, not a live view: they
are what the node carried then, which is precisely what makes a later
comparison meaningful.
Fields§
§key: StringThe node key this record is about.
blob: Option<String>The node’s blob_hash when the record was written, if it had one. Half of
the stable pair; without it drift cannot be detected.
path: Option<String>The node’s path when the record was written. Evidence for a human reader; never part of the drift check, because a path is not an identity.
Trait Implementations§
Source§impl Clone for MemoryAnchor
impl Clone for MemoryAnchor
Source§fn clone(&self) -> MemoryAnchor
fn clone(&self) -> MemoryAnchor
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 MemoryAnchor
impl Debug for MemoryAnchor
Source§impl<'de> Deserialize<'de> for MemoryAnchor
impl<'de> Deserialize<'de> for MemoryAnchor
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
impl Eq for MemoryAnchor
Source§impl PartialEq for MemoryAnchor
impl PartialEq for MemoryAnchor
Source§impl Serialize for MemoryAnchor
impl Serialize for MemoryAnchor
impl StructuralPartialEq for MemoryAnchor
Auto Trait Implementations§
impl Freeze for MemoryAnchor
impl RefUnwindSafe for MemoryAnchor
impl Send for MemoryAnchor
impl Sync for MemoryAnchor
impl Unpin for MemoryAnchor
impl UnsafeUnpin for MemoryAnchor
impl UnwindSafe for MemoryAnchor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.