pub enum StepExecutionResult {
Success {
output: Option<Value>,
},
Failure {
error: String,
},
}Expand description
Result of a step execution
Variants§
Implementations§
Source§impl StepExecutionResult
impl StepExecutionResult
Sourcepub fn success() -> StepExecutionResult
pub fn success() -> StepExecutionResult
Create a success result with no output
Sourcepub fn success_with_output(output: Value) -> StepExecutionResult
pub fn success_with_output(output: Value) -> StepExecutionResult
Create a success result with output
Sourcepub fn failure(error: String) -> StepExecutionResult
pub fn failure(error: String) -> StepExecutionResult
Create a failure result
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if the result is successful
Trait Implementations§
Source§impl Clone for StepExecutionResult
impl Clone for StepExecutionResult
Source§fn clone(&self) -> StepExecutionResult
fn clone(&self) -> StepExecutionResult
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 moreAuto Trait Implementations§
impl Forget for StepExecutionResult
impl Freeze for StepExecutionResult
impl Move for StepExecutionResult
impl RefUnwindSafe for StepExecutionResult
impl Send for StepExecutionResult
impl Sync for StepExecutionResult
impl Unpin for StepExecutionResult
impl UnsafeUnpin for StepExecutionResult
impl UnwindSafe for StepExecutionResult
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