pub struct ActionStatement {
pub type_: String,
pub timestamp: String,
pub actor: String,
pub action: String,
pub subject: SubjectRef,
pub parent_id: Option<String>,
pub approval_nonce: Option<String>,
pub policy_ref: Option<String>,
pub meta: Option<Value>,
}Expand description
Records that an actor performed an action.
This is the most common statement type — every tool call, API request, file write, or agent operation produces one.
Fields§
§type_: StringAlways TYPE_ACTION
timestamp: StringRFC 3339 timestamp, set at sign time.
actor: StringDID-style actor URI. e.g. “agent://researcher”, “human://alice”
action: StringDot-namespaced action label. e.g. “tool.call”, “stripe.charge.create”
subject: SubjectRef§parent_id: Option<String>Links this artifact to its parent in the chain.
approval_nonce: Option<String>Must match the nonce field of the approval authorising this action.
Provides cryptographic one-to-one binding between approval and action,
preventing approval reuse across multiple actions.
policy_ref: Option<String>§meta: Option<Value>Implementations§
Trait Implementations§
Source§impl Clone for ActionStatement
impl Clone for ActionStatement
Source§fn clone(&self) -> ActionStatement
fn clone(&self) -> ActionStatement
Returns a duplicate of the value. Read more
1.0.0 · 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 ActionStatement
impl Debug for ActionStatement
Source§impl<'de> Deserialize<'de> for ActionStatement
impl<'de> Deserialize<'de> for ActionStatement
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 ActionStatement
impl RefUnwindSafe for ActionStatement
impl Send for ActionStatement
impl Sync for ActionStatement
impl Unpin for ActionStatement
impl UnsafeUnpin for ActionStatement
impl UnwindSafe for ActionStatement
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