pub struct Contribution {
pub unit: String,
pub unit_type: ContributionUnitType,
pub agent_kind: AgentKind,
pub agent_id: String,
pub model: Option<String>,
pub model_version: Option<String>,
pub role: ContributionRole,
pub basis: String,
}Expand description
One attribution record at claim granularity: which actor contributed which
unit of a finding, and in what role. Descriptive provenance only — the
reducer never reads it as state, the gate never reads it as evidence, and it
is outside the vf_ id preimage (adding it does not change the finding id).
Fields§
§unit: StringThe sub-claim reference: an evidence-span ref, a Lean decl name, or the
literal whole (the current finding-level behaviour).
unit_type: ContributionUnitType§agent_kind: AgentKind§agent_id: StringORCID, agent handle, or model id.
model: Option<String>§model_version: Option<String>§role: ContributionRole§basis: StringFree text or an evidence-span reference backing the claim.
Implementations§
Trait Implementations§
Source§impl Clone for Contribution
impl Clone for Contribution
Source§fn clone(&self) -> Contribution
fn clone(&self) -> Contribution
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 moreSource§impl Debug for Contribution
impl Debug for Contribution
Source§impl<'de> Deserialize<'de> for Contribution
impl<'de> Deserialize<'de> for Contribution
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Contribution
impl RefUnwindSafe for Contribution
impl Send for Contribution
impl Sync for Contribution
impl Unpin for Contribution
impl UnsafeUnpin for Contribution
impl UnwindSafe for Contribution
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