pub struct ProvenanceEventRef<'a> {
pub id: &'a str,
pub kind: &'a str,
pub finding_id: &'a str,
pub payload: &'a Value,
}Expand description
A minimal projection of a crate::events::StateEvent needed
for provenance computation.
Decoupled from the concrete StateEvent type so this module
can be used in tests, against synthetic event logs, and across
future event-shape changes without rippling.
Fields§
§id: &'a strContent-addressed event id (vev_*). Becomes a variable in
the polynomial.
kind: &'a strEvent kind string (e.g. finding.asserted).
finding_id: &'a strTarget finding id (vf_*). Filters events to a single
claim-context pair.
payload: &'a ValueEvent payload, used to read review status fields.
Trait Implementations§
Source§impl<'a> Clone for ProvenanceEventRef<'a>
impl<'a> Clone for ProvenanceEventRef<'a>
Source§fn clone(&self) -> ProvenanceEventRef<'a>
fn clone(&self) -> ProvenanceEventRef<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for ProvenanceEventRef<'a>
impl<'a> RefUnwindSafe for ProvenanceEventRef<'a>
impl<'a> Send for ProvenanceEventRef<'a>
impl<'a> Sync for ProvenanceEventRef<'a>
impl<'a> Unpin for ProvenanceEventRef<'a>
impl<'a> UnsafeUnpin for ProvenanceEventRef<'a>
impl<'a> UnwindSafe for ProvenanceEventRef<'a>
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