pub struct ProvenanceDef {
pub id: String,
pub node: String,
pub library: String,
pub item: Option<String>,
pub linked: Option<bool>,
pub source_span: Option<Span>,
pub unknown_props: BTreeMap<String, UnknownProperty>,
}Expand description
A single provenance record within a provenance block — one node’s origin.
Fields§
§id: StringThis record’s own unique id. Required.
node: StringThe id of the document node this provenance describes. Required; must reference an existing node id, a declared token id, or a declared action id.
library: StringThe declared library/package id this node originated from. Required; must
reference a library declared in the libraries block.
item: Option<String>The item name within the library (e.g. “button”). Optional.
linked: Option<bool>Link state: Some(true) = linked (updates when the library updates),
Some(false) = detached (frozen). None = unspecified (treated as linked
by external tooling). The engine preserves this; it does not act on it.
source_span: Option<Span>Source declaration span, when available.
unknown_props: BTreeMap<String, UnknownProperty>Forward-compat: unrecognized attributes preserved with typed values + annotations.
Trait Implementations§
Source§impl Clone for ProvenanceDef
impl Clone for ProvenanceDef
Source§fn clone(&self) -> ProvenanceDef
fn clone(&self) -> ProvenanceDef
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProvenanceDef
impl Debug for ProvenanceDef
Source§impl PartialEq for ProvenanceDef
impl PartialEq for ProvenanceDef
Source§fn eq(&self, other: &ProvenanceDef) -> bool
fn eq(&self, other: &ProvenanceDef) -> bool
self and other values to be equal, and is used by ==.