pub struct StepTemplate {Show 13 fields
pub name: String,
pub description: Option<Description>,
pub let_bindings: Option<Vec<String>>,
pub dependencies: Option<Vec<StepDependency>>,
pub step_environments: Option<Vec<Environment>>,
pub host_requirements: Option<HostRequirements>,
pub parameter_space: Option<StepParameterSpaceDefinition>,
pub script: Option<StepScript>,
pub bash: Option<SimpleAction>,
pub python: Option<SimpleAction>,
pub cmd: Option<SimpleAction>,
pub powershell: Option<SimpleAction>,
pub node: Option<SimpleAction>,
}Expand description
§3 StepTemplate
Fields§
§name: String§description: Option<Description>§let_bindings: Option<Vec<String>>§dependencies: Option<Vec<StepDependency>>§step_environments: Option<Vec<Environment>>§host_requirements: Option<HostRequirements>§parameter_space: Option<StepParameterSpaceDefinition>§script: Option<StepScript>§bash: Option<SimpleAction>§python: Option<SimpleAction>§cmd: Option<SimpleAction>§powershell: Option<SimpleAction>§node: Option<SimpleAction>Implementations§
Source§impl StepTemplate
impl StepTemplate
Sourcepub fn resolve_syntax_sugar(&self) -> Result<Option<StepScript>, ModelError>
pub fn resolve_syntax_sugar(&self) -> Result<Option<StepScript>, ModelError>
De-sugar SimpleAction syntax into equivalent StepScript.
If the step already has a script field, returns Ok(Some(clone)).
If it uses a SimpleAction (bash/python/cmd/powershell/node), transforms
it into a StepScript with an embedded file and onRun action.
Returns Err if the SimpleAction script contains malformed format string syntax.
Trait Implementations§
Source§impl Clone for StepTemplate
impl Clone for StepTemplate
Source§fn clone(&self) -> StepTemplate
fn clone(&self) -> StepTemplate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StepTemplate
impl Debug for StepTemplate
Source§impl<'de> Deserialize<'de> for StepTemplate
impl<'de> Deserialize<'de> for StepTemplate
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
Auto Trait Implementations§
impl Freeze for StepTemplate
impl RefUnwindSafe for StepTemplate
impl Send for StepTemplate
impl Sync for StepTemplate
impl Unpin for StepTemplate
impl UnsafeUnpin for StepTemplate
impl UnwindSafe for StepTemplate
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