pub enum WorkflowData {
Add {
phase: AddPhase,
uri: Option<String>,
id: Option<String>,
},
Change {
selected_input: Option<String>,
uri: Option<String>,
input_uris: HashMap<String, String>,
all_inputs: Vec<String>,
},
Remove {
selected_inputs: Vec<String>,
all_inputs: Vec<String>,
},
SelectOne {
selected_input: Option<String>,
},
SelectMany {
selected_inputs: Vec<String>,
},
ConfirmOnly {
action: Option<ConfirmResultAction>,
},
Follow {
phase: FollowPhase,
selected_input: Option<String>,
selected_target: Option<String>,
nested_inputs: Vec<NestedInput>,
top_level_inputs: Vec<String>,
},
}Expand description
Workflow-specific data tracking the state of the current operation
Variants§
Add
Change
Fields
Remove
SelectOne
SelectMany
ConfirmOnly
Fields
§
action: Option<ConfirmResultAction>Follow
Fields
§
phase: FollowPhase§
nested_inputs: Vec<NestedInput>All available nested inputs with their follows info
Implementations§
Source§impl WorkflowData
impl WorkflowData
Sourcepub fn build_change(&self) -> Change
pub fn build_change(&self) -> Change
Build a Change based on the current workflow state.
Trait Implementations§
Source§impl Clone for WorkflowData
impl Clone for WorkflowData
Source§fn clone(&self) -> WorkflowData
fn clone(&self) -> WorkflowData
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 WorkflowData
impl RefUnwindSafe for WorkflowData
impl Send for WorkflowData
impl Sync for WorkflowData
impl Unpin for WorkflowData
impl UnwindSafe for WorkflowData
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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