pub struct DataBasedSwitchState {
pub id: Option<String>,
pub name: String,
pub state_data_filter: Option<StateDataFilter>,
pub timeouts: Option<DataBasedSwitchStateTimeouts>,
pub data_conditions: Vec<DataCondition>,
pub on_errors: Option<Vec<Error>>,
pub default_condition: DefaultConditionDef,
pub compensated_by: Option<String>,
pub used_for_compensation: bool,
pub metadata: Option<Metadata>,
}Expand description
Permits transitions to other states based on data conditions
Fields§
§id: Option<String>Unique State id
name: StringState name
state_data_filter: Option<StateDataFilter>State data filter
timeouts: Option<DataBasedSwitchStateTimeouts>State specific timeouts
data_conditions: Vec<DataCondition>Defines conditions evaluated against state data
on_errors: Option<Vec<Error>>States error handling definitions
default_condition: DefaultConditionDefDefault transition of the workflow if there is no matching data conditions.
Can include a transition or end definition.
compensated_by: Option<String>Unique Name of a workflow state which is responsible for compensation of this state
used_for_compensation: boolIf true, this state is used to compensate another state. Default is false
metadata: Option<Metadata>State metadata
Trait Implementations§
Source§impl Clone for DataBasedSwitchState
impl Clone for DataBasedSwitchState
Source§fn clone(&self) -> DataBasedSwitchState
fn clone(&self) -> DataBasedSwitchState
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 DataBasedSwitchState
impl Debug for DataBasedSwitchState
Source§impl<'de> Deserialize<'de> for DataBasedSwitchState
impl<'de> Deserialize<'de> for DataBasedSwitchState
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 Serialize for DataBasedSwitchState
impl Serialize for DataBasedSwitchState
Auto Trait Implementations§
impl Freeze for DataBasedSwitchState
impl RefUnwindSafe for DataBasedSwitchState
impl Send for DataBasedSwitchState
impl Sync for DataBasedSwitchState
impl Unpin for DataBasedSwitchState
impl UnwindSafe for DataBasedSwitchState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more