pub struct MachineContribution {
pub id: String,
pub class: String,
pub role: String,
pub tool: String,
pub generated_by: String,
pub authority: String,
}Expand description
A non-human actor that contributed to producing a transition.
Fields§
§id: StringA non-human actor id, e.g. agent:claude. Refused by
Provenance::validate if it classifies as human.
class: StringDeclared actor class (agent, ci). Decorative: the load-bearing class
comes from id via crate::events::actor_kind.
role: StringWhat the contributor did, e.g. drafted.
tool: StringThe tool surface, e.g. claude-code.
generated_by: StringUNVERIFIED free-text model/version provenance, e.g.
model: claude-opus-4-8. Never resolved to a key, never an attestation
ABOUT the model.
Always none. A machine contribution cannot assert authority;
Provenance::validate refuses any other value. Present on the wire so
the non-authoritative status is explicit, matching PROV’s agent-role
separation.
Trait Implementations§
Source§impl Clone for MachineContribution
impl Clone for MachineContribution
Source§fn clone(&self) -> MachineContribution
fn clone(&self) -> MachineContribution
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 MachineContribution
impl Debug for MachineContribution
Source§impl Default for MachineContribution
impl Default for MachineContribution
Source§fn default() -> MachineContribution
fn default() -> MachineContribution
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MachineContribution
impl<'de> Deserialize<'de> for MachineContribution
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
impl Eq for MachineContribution
Source§impl PartialEq for MachineContribution
impl PartialEq for MachineContribution
Source§impl Serialize for MachineContribution
impl Serialize for MachineContribution
impl StructuralPartialEq for MachineContribution
Auto Trait Implementations§
impl Freeze for MachineContribution
impl RefUnwindSafe for MachineContribution
impl Send for MachineContribution
impl Sync for MachineContribution
impl Unpin for MachineContribution
impl UnsafeUnpin for MachineContribution
impl UnwindSafe for MachineContribution
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.