pub struct ApprovalStatement {Show 13 fields
pub type_: String,
pub timestamp: String,
pub approver: String,
pub subject: SubjectRef,
pub description: Option<String>,
pub expires_at: Option<String>,
pub delegatable: bool,
pub nonce: String,
pub scope: Option<ApprovalScope>,
pub policy_ref: Option<String>,
pub irreversibility: Option<String>,
pub quarantine_receipt: Option<String>,
pub meta: Option<Value>,
}Expand description
Records that an approver authorised an intent or action.
The nonce field is the cornerstone of approval security: the consuming
ActionStatement must echo the same nonce in its approval_nonce field.
This cryptographically binds each approval to exactly one action (or
max_actions actions when set), preventing approval reuse.
Fields§
§type_: String§timestamp: String§approver: StringDID-style approver URI. e.g. “human://alice”
subject: SubjectRef§description: Option<String>§expires_at: Option<String>ISO 8601 expiry timestamp. None means no expiry.
delegatable: boolWhether the receiving actor may re-delegate this approval.
nonce: StringRandom token. The consuming ActionStatement must set its
approval_nonce field to this value. Generated by the SDK if
not provided by the caller.
scope: Option<ApprovalScope>§policy_ref: Option<String>§irreversibility: Option<String>Irreversibility class of the actions this approval authorizes.
One of IRREVERSIBILITY_CLASSES (fail-closed: producers must
reject any other value; absent means undeclared, the pre-existing
behavior). Consequential-or-worse classes gate on memory
quarantine evidence at minting; see
docs/specs/memory-provenance-binding.md §2.4-2.5.
quarantine_receipt: Option<String>Artifact id of the memory.quarantine-check.v1 receipt that
gated this grant. Signed into the approval so the evidence link
is tamper-evident: a verifier can walk grant -> check receipt ->
provider key -> chain root.
meta: Option<Value>Implementations§
Trait Implementations§
Source§impl Clone for ApprovalStatement
impl Clone for ApprovalStatement
Source§fn clone(&self) -> ApprovalStatement
fn clone(&self) -> ApprovalStatement
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more