pub struct PartsLibraryEntry {
pub source_key: String,
pub source_signature: String,
pub document: Value,
pub snapshot: String,
pub ports: BTreeMap<String, PortRecord>,
pub dirty: bool,
pub doc_hash: u64,
}Expand description
One unique part payload (spec §2.1). dirty is RESIDENT-ONLY state: set by
refresh_library_entry (edit-in-context / update-components), it forces
the ACOMP self-heal lane on the next run even with a readable snapshot, and
clears when the heal rewrites the snapshot.
Fields§
§source_key: String§source_signature: String§document: ValueThe embedded full sub-part history JSON — the durable source the self-heal lane re-executes when the snapshot cache fails.
snapshot: StringThe evaluated part as an io/snapshot payload (the fast lane).
ports: BTreeMap<String, PortRecord>The part’s harness ports (part-local id -> record, part-local pose), captured from the same run as the snapshot. Derived like the snapshot: an entry whose document declares a PORT but carries none is healed.
dirty: bool§doc_hash: u64Stable content hash of document, precomputed at insert/refresh/ingest
so the per-feature cache hook never re-hashes a large document.
Trait Implementations§
Source§impl Clone for PartsLibraryEntry
impl Clone for PartsLibraryEntry
Source§fn clone(&self) -> PartsLibraryEntry
fn clone(&self) -> PartsLibraryEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more