pub struct Provenance { /* private fields */ }Expand description
Lineage metadata that ties normalized data back to its provider record.
Implementations§
Source§impl Provenance
impl Provenance
Sourcepub fn builder() -> ProvenanceBuilder
pub fn builder() -> ProvenanceBuilder
Create an instance of Provenance using the builder syntax
Source§impl Provenance
impl Provenance
Sourcepub const fn source_system(&self) -> System
pub const fn source_system(&self) -> System
Upstream system label preserved for source evidence and adapter routing.
Sourcepub const fn endpoint(&self) -> &Endpoint
pub const fn endpoint(&self) -> &Endpoint
Provider endpoint or import route that produced this payload.
Sourcepub const fn record_id(&self) -> &Id
pub const fn record_id(&self) -> &Id
Primary provider/read-model record id for this source fact.
Related source records that explain joins behind this source fact.
Sourcepub const fn extraction_batch(&self) -> &ExtractionBatchId
pub const fn extraction_batch(&self) -> &ExtractionBatchId
Extraction batch that groups records from the same provider pull.
Sourcepub const fn pulled_at(&self) -> &Timestamp
pub const fn pulled_at(&self) -> &Timestamp
UTC extraction timestamp used to reason about freshness and replay.
Sourcepub const fn request_scope(&self) -> &RequestScope
pub const fn request_scope(&self) -> &RequestScope
Provider request scope that explains why this record was imported.
Sourcepub const fn schema_version(&self) -> &SchemaVersion
pub const fn schema_version(&self) -> &SchemaVersion
Provider schema version used by mappers and drift review.
Sourcepub const fn payload_hash(&self) -> &PayloadHash
pub const fn payload_hash(&self) -> &PayloadHash
Payload hash used for idempotency, drift detection, and audit comparison.
Sourcepub const fn raw_payload_ref(&self) -> &RawPayloadRef
pub const fn raw_payload_ref(&self) -> &RawPayloadRef
Raw payload storage reference kept as reviewer-facing source evidence.
Trait Implementations§
Source§impl Clone for Provenance
impl Clone for Provenance
Source§fn clone(&self) -> Provenance
fn clone(&self) -> Provenance
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more