pub struct ActionSpec {
pub id: Option<String>,
pub tool: String,
pub args: Value,
pub depends_on: Vec<String>,
pub timeout_ms: Option<u64>,
pub omit_result: bool,
}Expand description
One action inside a batch: an MCP tool name plus its arguments.
Fields§
§id: Option<String>Optional stable id, referenced by dependsOn of other actions.
tool: StringMCP tool name (e.g. webview_interact, webview_execute_js).
args: ValueTool arguments object (same shape as a direct MCP tool call).
depends_on: Vec<String>Ids of actions that must succeed before this one starts.
timeout_ms: Option<u64>Per-action timeout override in milliseconds.
omit_result: boolOmit the tool result from the log entry (status/timing only).
Trait Implementations§
Source§impl Clone for ActionSpec
impl Clone for ActionSpec
Source§fn clone(&self) -> ActionSpec
fn clone(&self) -> ActionSpec
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 ActionSpec
impl Debug for ActionSpec
Source§impl<'de> Deserialize<'de> for ActionSpec
impl<'de> Deserialize<'de> for ActionSpec
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 ActionSpec
impl RefUnwindSafe for ActionSpec
impl Send for ActionSpec
impl Sync for ActionSpec
impl Unpin for ActionSpec
impl UnsafeUnpin for ActionSpec
impl UnwindSafe for ActionSpec
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