pub struct ExecutionContext {
pub dry_run: bool,
pub idempotency_key: Option<String>,
pub cache_config: Option<CacheConfig>,
pub retry_context: Option<RetryContext>,
pub base_url: Option<String>,
pub global_config: Option<GlobalConfig>,
pub server_var_args: Vec<String>,
pub auto_paginate: bool,
}Expand description
Execution-time configuration that is orthogonal to the operation itself.
Controls retry behavior, caching, dry-run mode, and authentication context. Does not include rendering concerns (output format, JQ filters) — those belong in the CLI rendering layer.
Fields§
§dry_run: boolIf true, show the request that would be made without executing it.
idempotency_key: Option<String>Optional idempotency key for safe retries.
cache_config: Option<CacheConfig>Response cache configuration. None disables caching.
retry_context: Option<RetryContext>Retry configuration. None disables retries.
base_url: Option<String>Base URL override. None uses BaseUrlResolver priority chain.
global_config: Option<GlobalConfig>Global configuration for URL resolution and secret lookup.
server_var_args: Vec<String>Server template variable overrides (e.g., ["region=us", "env=prod"]).
auto_paginate: boolIf true, loop through all pages and stream results as NDJSON.
Trait Implementations§
Source§impl Clone for ExecutionContext
impl Clone for ExecutionContext
Source§fn clone(&self) -> ExecutionContext
fn clone(&self) -> ExecutionContext
Returns a duplicate of the value. Read more
1.0.0 · 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 ExecutionContext
impl Debug for ExecutionContext
Source§impl Default for ExecutionContext
impl Default for ExecutionContext
Source§fn default() -> ExecutionContext
fn default() -> ExecutionContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExecutionContext
impl RefUnwindSafe for ExecutionContext
impl Send for ExecutionContext
impl Sync for ExecutionContext
impl Unpin for ExecutionContext
impl UnsafeUnpin for ExecutionContext
impl UnwindSafe for ExecutionContext
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