pub struct ActionDef {
pub id: String,
pub label: Option<String>,
pub version: Option<String>,
pub tx_json: String,
pub source_span: Option<Span>,
pub unknown_props: BTreeMap<String, UnknownProperty>,
}Expand description
A single action declaration within an actions block — one named
transaction script.
Fields§
§id: StringThe action identifier, e.g. “apply-brand-kit”. Required.
label: Option<String>Human-readable label, e.g. “Apply Brand Kit”. Optional.
version: Option<String>Declared version string, e.g. “1.0.0”. Optional.
tx_json: StringThe transaction script payload as an opaque JSON string. Required. The engine round-trips this verbatim without parsing it.
source_span: Option<Span>Source declaration span, when available.
unknown_props: BTreeMap<String, UnknownProperty>Forward-compat: unrecognized attributes preserved with typed values + annotations.
Trait Implementations§
impl StructuralPartialEq for ActionDef
Auto Trait Implementations§
impl Freeze for ActionDef
impl RefUnwindSafe for ActionDef
impl Send for ActionDef
impl Sync for ActionDef
impl Unpin for ActionDef
impl UnsafeUnpin for ActionDef
impl UnwindSafe for ActionDef
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