pub struct VolatileSection(pub BTreeMap<EntityKind, BTreeMap<String, BTreeMap<String, Value>>>);Expand description
The volatile portion of an extraction.
Everything that changes on its own between runs with zero configuration drift — last-login timestamps, session-derived data — lives here, never in the config body. Fields are keyed by entity kind, row id, then their dotted path, so the completeness verifier can prove, for every existing row, that its volatile fields were captured.
The content hash covers only the config portion; this section never enters it, so volatile churn cannot pollute drift detection.
Tuple Fields§
§0: BTreeMap<EntityKind, BTreeMap<String, BTreeMap<String, Value>>>entity kind -> row id -> dotted path -> value.
Implementations§
Source§impl VolatileSection
impl VolatileSection
Sourcepub fn insert(
&mut self,
entity: EntityKind,
row_id: impl Into<String>,
path: impl Into<String>,
value: Value,
)
pub fn insert( &mut self, entity: EntityKind, row_id: impl Into<String>, path: impl Into<String>, value: Value, )
Record one volatile value for a row.
Sourcepub fn get(
&self,
entity: EntityKind,
row_id: &str,
path: &str,
) -> Option<&Value>
pub fn get( &self, entity: EntityKind, row_id: &str, path: &str, ) -> Option<&Value>
Look up a recorded volatile value.
Sourcepub fn row_ids<'a>(
&'a self,
entity: &'a EntityKind,
) -> impl Iterator<Item = &'a String>
pub fn row_ids<'a>( &'a self, entity: &'a EntityKind, ) -> impl Iterator<Item = &'a String>
All row ids recorded for an entity kind, in stable order.
Trait Implementations§
Source§impl Clone for VolatileSection
impl Clone for VolatileSection
Source§impl Debug for VolatileSection
impl Debug for VolatileSection
Source§impl Default for VolatileSection
impl Default for VolatileSection
Source§impl<'de> Deserialize<'de> for VolatileSection
impl<'de> Deserialize<'de> for VolatileSection
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 VolatileSection
Source§impl PartialEq for VolatileSection
impl PartialEq for VolatileSection
Source§impl Serialize for VolatileSection
impl Serialize for VolatileSection
impl StructuralPartialEq for VolatileSection
Auto Trait Implementations§
impl Freeze for VolatileSection
impl RefUnwindSafe for VolatileSection
impl Send for VolatileSection
impl Sync for VolatileSection
impl Unpin for VolatileSection
impl UnsafeUnpin for VolatileSection
impl UnwindSafe for VolatileSection
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