pub enum FlowResult {
Success(ValueRef),
Failed(FlowError),
}Expand description
The results of a step execution.
Variants§
Success(ValueRef)
The step execution was successful.
Failed(FlowError)
The step failed with the given error.
Implementations§
Source§impl FlowResult
impl FlowResult
pub fn success(&self) -> Option<ValueRef>
pub fn failed(&self) -> Option<&FlowError>
Sourcepub fn is_transport_error(&self) -> bool
pub fn is_transport_error(&self) -> bool
Returns true if this is a transport/infrastructure error (always retried).
Sourcepub fn is_component_execution_error(&self) -> bool
pub fn is_component_execution_error(&self) -> bool
Returns true if this is a component execution error
(retryable with onError: { action: retry }).
Trait Implementations§
Source§impl Clone for FlowResult
impl Clone for FlowResult
Source§fn clone(&self) -> FlowResult
fn clone(&self) -> FlowResult
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 FlowResult
impl Debug for FlowResult
Source§impl<'de> Deserialize<'de> for FlowResult
impl<'de> Deserialize<'de> for FlowResult
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Value> for FlowResult
impl From<Value> for FlowResult
Source§impl JsonSchema for FlowResult
impl JsonSchema for FlowResult
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for FlowResult
impl PartialEq for FlowResult
Source§impl Serialize for FlowResult
impl Serialize for FlowResult
impl StructuralPartialEq for FlowResult
Auto Trait Implementations§
impl Freeze for FlowResult
impl RefUnwindSafe for FlowResult
impl Send for FlowResult
impl Sync for FlowResult
impl Unpin for FlowResult
impl UnsafeUnpin for FlowResult
impl UnwindSafe for FlowResult
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