pub struct WorkflowInputs { /* private fields */ }Expand description
Represents inputs to a workflow.
Implementations§
Source§impl WorkflowInputs
impl WorkflowInputs
Sourcepub fn iter(&self) -> impl Iterator<Item = (&str, &Value)> + use<'_>
pub fn iter(&self) -> impl Iterator<Item = (&str, &Value)> + use<'_>
Iterates the inputs to the workflow.
Sourcepub fn set(
&mut self,
name: impl Into<String>,
value: impl Into<Value>,
) -> Option<Value>
pub fn set( &mut self, name: impl Into<String>, value: impl Into<Value>, ) -> Option<Value>
Sets a workflow input.
Returns the previous value, if any.
Sourcepub fn contains(&self, name: &str) -> bool
pub fn contains(&self, name: &str) -> bool
Checks if the inputs contain a value with the specified name.
This does not check nested call inputs.
Sourcepub async fn join_paths<'a>(
&mut self,
workflow: &Workflow,
path: impl Fn(&str) -> Result<&'a EvaluationPath>,
) -> Result<()>
pub async fn join_paths<'a>( &mut self, workflow: &Workflow, path: impl Fn(&str) -> Result<&'a EvaluationPath>, ) -> Result<()>
Replaces any File or Directory input values with joining the
specified path with the value.
This method will attempt to coerce matching input values to their expected types.
Trait Implementations§
Source§impl Clone for WorkflowInputs
impl Clone for WorkflowInputs
Source§fn clone(&self) -> WorkflowInputs
fn clone(&self) -> WorkflowInputs
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 WorkflowInputs
impl Debug for WorkflowInputs
Source§impl Default for WorkflowInputs
impl Default for WorkflowInputs
Source§fn default() -> WorkflowInputs
fn default() -> WorkflowInputs
Returns the “default value” for a type. Read more
Source§impl From<WorkflowInputs> for Inputs
impl From<WorkflowInputs> for Inputs
Source§fn from(inputs: WorkflowInputs) -> Self
fn from(inputs: WorkflowInputs) -> Self
Converts to this type from the input type.
Source§impl<S, V> FromIterator<(S, V)> for WorkflowInputs
impl<S, V> FromIterator<(S, V)> for WorkflowInputs
Auto Trait Implementations§
impl Freeze for WorkflowInputs
impl RefUnwindSafe for WorkflowInputs
impl Send for WorkflowInputs
impl Sync for WorkflowInputs
impl Unpin for WorkflowInputs
impl UnwindSafe for WorkflowInputs
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