pub struct Attribution {
pub principal: Principal,
pub agent: Option<Agent>,
}Expand description
Attribution for a change (who did it).
Fields§
§principal: PrincipalHuman accountable for the change.
agent: Option<Agent>AI agent that performed the change (if any).
Implementations§
Source§impl Attribution
impl Attribution
Trait Implementations§
Source§impl Clone for Attribution
impl Clone for Attribution
Source§fn clone(&self) -> Attribution
fn clone(&self) -> Attribution
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 Attribution
impl Debug for Attribution
Source§impl<'de> Deserialize<'de> for Attribution
impl<'de> Deserialize<'de> for Attribution
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
Source§impl Display for Attribution
impl Display for Attribution
impl Eq for Attribution
Source§impl PartialEq for Attribution
impl PartialEq for Attribution
Source§fn eq(&self, other: &Attribution) -> bool
fn eq(&self, other: &Attribution) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Attribution
impl Serialize for Attribution
impl StructuralPartialEq for Attribution
Auto Trait Implementations§
impl Freeze for Attribution
impl RefUnwindSafe for Attribution
impl Send for Attribution
impl Sync for Attribution
impl Unpin for Attribution
impl UnsafeUnpin for Attribution
impl UnwindSafe for Attribution
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