Skip to main content

execute

Function execute 

Source
pub async fn execute(
    spec: &CachedSpec,
    call: OperationCall,
    ctx: ExecutionContext,
) -> Result<ExecutionResult, Error>
Expand description

Executes an API operation using CLI-agnostic domain types.

This is the primary entry point for the execution engine. It accepts pre-extracted parameters in [OperationCall] and execution configuration in [ExecutionContext], returning a structured [ExecutionResult] instead of printing directly.

ยงErrors

Returns errors for authentication failures, network issues, or response validation problems.