pub enum ExecutionResult {
Success {
body: String,
status: u16,
headers: HashMap<String, String>,
},
DryRun {
request_info: Value,
},
Cached {
body: String,
},
Empty,
}Expand description
Structured result returned by the executor. The CLI layer decides how to render this (JSON, YAML, table, etc.) — the executor never prints.
Variants§
Success
Successful HTTP response.
Fields
DryRun
Dry-run mode: the request that would have been sent.
Cached
Response served from cache.
Empty
The operation completed but produced no response body.
Trait Implementations§
Source§impl Clone for ExecutionResult
impl Clone for ExecutionResult
Source§fn clone(&self) -> ExecutionResult
fn clone(&self) -> ExecutionResult
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 moreAuto Trait Implementations§
impl Freeze for ExecutionResult
impl RefUnwindSafe for ExecutionResult
impl Send for ExecutionResult
impl Sync for ExecutionResult
impl Unpin for ExecutionResult
impl UnsafeUnpin for ExecutionResult
impl UnwindSafe for ExecutionResult
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