pub struct BatchOperation {Show 13 fields
pub id: Option<String>,
pub args: Vec<String>,
pub description: Option<String>,
pub headers: HashMap<String, String>,
pub use_cache: Option<bool>,
pub retry: Option<u32>,
pub retry_delay: Option<String>,
pub retry_max_delay: Option<String>,
pub force_retry: bool,
pub capture: Option<HashMap<String, String>>,
pub capture_append: Option<HashMap<String, String>>,
pub depends_on: Option<Vec<String>>,
pub body_file: Option<String>,
}Expand description
A single batch operation definition
Fields§
§id: Option<String>Unique identifier for this operation (optional for independent ops, required when
using capture, capture_append, or depends_on)
args: Vec<String>The command arguments to execute (e.g., ["users", "get", "--user-id", "123"])
description: Option<String>Optional description for this operation
headers: HashMap<String, String>Custom headers for this specific operation
use_cache: Option<bool>Whether to use cache for this operation (overrides global cache setting)
retry: Option<u32>Maximum number of retry attempts for this operation (overrides global retry setting)
retry_delay: Option<String>Initial delay between retries (e.g., “500ms”, “1s”)
retry_max_delay: Option<String>Maximum delay cap between retries (e.g., “30s”, “1m”)
force_retry: boolForce retry on non-idempotent requests without an idempotency key
capture: Option<HashMap<String, String>>Capture scalar values from the response using JQ syntax.
Maps variable name → JQ query (e.g., {"user_id": ".id"}).
Captured values are available for {{variable}} interpolation in subsequent operations.
capture_append: Option<HashMap<String, String>>Append extracted values to a named list using JQ syntax. Maps list name → JQ query. The list interpolates as a JSON array literal. Enables fan-out/aggregate patterns where N operations feed into a terminal call.
depends_on: Option<Vec<String>>Explicit dependency on other operations by their id.
This operation will not execute until all dependencies have completed.
Dependencies can also be inferred from {{variable}} usage in args.
body_file: Option<String>Read the request body from this file path instead of embedding it in
args. Equivalent to passing --body-file <path> in args, but
avoids quoting issues with long or prose-heavy JSON payloads.
Mutually exclusive with a --body or --body-file entry in args.
Trait Implementations§
Source§impl Clone for BatchOperation
impl Clone for BatchOperation
Source§fn clone(&self) -> BatchOperation
fn clone(&self) -> BatchOperation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more