pub struct Step {
pub name: String,
pub function: String,
pub inputs: Vec<StepInput>,
pub timeout: Option<Duration>,
}Expand description
Runtime representation of a step in an execution plan
Fields§
§name: String§function: String§inputs: Vec<StepInput>§timeout: Option<Duration>Implementations§
Source§impl Step
impl Step
Sourcepub fn new(
name: impl Into<String>,
function: impl Into<String>,
inputs: Vec<StepInput>,
) -> Self
pub fn new( name: impl Into<String>, function: impl Into<String>, inputs: Vec<StepInput>, ) -> Self
Create a new step
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Create a step with a custom timeout
Sourcepub fn get_dependencies(&self) -> Vec<String>
pub fn get_dependencies(&self) -> Vec<String>
Get all step dependencies for this step
Trait Implementations§
Source§impl From<StepConfig> for Step
impl From<StepConfig> for Step
Source§fn from(config: StepConfig) -> Self
fn from(config: StepConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnwindSafe for Step
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