pub struct DiffNode {Show 13 fields
pub action: String,
pub item_type: String,
pub path: String,
pub source_path: Option<String>,
pub summary: Option<String>,
pub tags: BTreeSet<String>,
pub children: Vec<DiffNode>,
pub details: BTreeMap<String, Value>,
pub annotations: BTreeMap<String, Value>,
pub comparator: Option<String>,
pub transformed_by: Vec<String>,
pub source_items: Option<ItemPair>,
pub artifacts: Vec<ArtifactDescriptor>,
}Expand description
A node in the diff tree — the central data structure of the system. Every comparator emits it, every transformer rewrites it, and serializers or bindings read it.
Fields§
§action: StringOpen enum: “add”, “remove”, “modify”, “move”, “reorder”, “schema_change”, etc. Plugins may define new actions.
item_type: StringOpen string: “directory”, “file”, “tabular”, “zip_archive”, etc. No built-in types — conventions, not enforcement.
path: StringLocation within snapshot (logical path, including interior paths like “archive.zip/data/file.csv”).
source_path: Option<String>For moves/renames: the original path.
summary: Option<String>Optional human-readable one-liner describing the change. Set by comparator or transformer; used by renderers for narrative rendering.
Open bag of semantic tags, namespaced by convention. e.g. “binoc.column-reorder”, “biobinoc.gap-change”
children: Vec<DiffNode>Child diff nodes forming the tree structure.
details: BTreeMap<String, Value>Comparator-specific payload, schema determined by item_type convention.
annotations: BTreeMap<String, Value>Transformer-added metadata.
comparator: Option<String>Which comparator produced this node (provenance for extract chain).
transformed_by: Vec<String>Transformers that modified this node, in order (provenance for extract chain).
source_items: Option<ItemPair>The original item pair that produced this node. Transient — available during the live diff/transform session for transformers and extractors that need to re-read source data. Not serialized into changeset JSON.
artifacts: Vec<ArtifactDescriptor>Published artifacts for this node. Transient session data — not
serialized into changeset JSON. Keyed by (subject, format_id).