pub struct ActionStatementV2 {
pub type_: String,
pub timestamp: String,
pub actor: String,
pub action: String,
pub audience: Option<String>,
pub subject: SubjectRef,
pub parent_id: Option<String>,
pub mandate: Mandate,
pub effect: Option<Effect>,
pub runtime: Option<RuntimeIdentity>,
pub meta: Option<Value>,
}Expand description
treeship/action/v2 statement. Additive over v1: the v1 core fields are
unchanged; audience, mandate, effect, and runtime are new.
mandate is required (a v2 receipt with no mandate would just be a v1
receipt); effect and runtime are optional.
Fields§
§type_: String§timestamp: StringRFC 3339 timestamp, set at sign time. This IS signed_at, the instant
that gates mandate validity.
actor: String§action: String§audience: Option<String>Audience this action targeted. Checked against mandate.audience to
block cross-audience replay. Absent means the signer did not record a
target audience, which makes the audience layer unverifiable (not a
pass).
subject: SubjectRef§parent_id: Option<String>§mandate: Mandate§effect: Option<Effect>§runtime: Option<RuntimeIdentity>The model runtime the actor executed under. See RuntimeIdentity.
Absent means the signer recorded no runtime, which leaves the runtime
layer unverifiable (not a pass).
meta: Option<Value>Implementations§
Trait Implementations§
Source§impl Clone for ActionStatementV2
impl Clone for ActionStatementV2
Source§fn clone(&self) -> ActionStatementV2
fn clone(&self) -> ActionStatementV2
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 ActionStatementV2
impl Debug for ActionStatementV2
Source§impl<'de> Deserialize<'de> for ActionStatementV2
impl<'de> Deserialize<'de> for ActionStatementV2
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 ActionStatementV2
impl RefUnwindSafe for ActionStatementV2
impl Send for ActionStatementV2
impl Sync for ActionStatementV2
impl Unpin for ActionStatementV2
impl UnsafeUnpin for ActionStatementV2
impl UnwindSafe for ActionStatementV2
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