pub struct WorkflowTemplate {
pub name: String,
pub description: String,
pub category: TemplateCategory,
pub parameters: Vec<TemplateParam>,
pub steps: Vec<TemplateStep>,
}Expand description
A workflow template.
Fields§
§name: StringTemplate name.
description: StringTemplate description.
category: TemplateCategoryTemplate category.
parameters: Vec<TemplateParam>Template parameters.
steps: Vec<TemplateStep>Template steps.
Implementations§
Source§impl WorkflowTemplate
impl WorkflowTemplate
Sourcepub fn new(
name: impl Into<String>,
description: impl Into<String>,
category: TemplateCategory,
) -> Self
pub fn new( name: impl Into<String>, description: impl Into<String>, category: TemplateCategory, ) -> Self
Create a new workflow template.
Sourcepub fn with_parameter(self, param: TemplateParam) -> Self
pub fn with_parameter(self, param: TemplateParam) -> Self
Add a parameter definition.
Sourcepub fn with_step(self, step: TemplateStep) -> Self
pub fn with_step(self, step: TemplateStep) -> Self
Add a step.
Trait Implementations§
Source§impl Clone for WorkflowTemplate
impl Clone for WorkflowTemplate
Source§fn clone(&self) -> WorkflowTemplate
fn clone(&self) -> WorkflowTemplate
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 moreAuto Trait Implementations§
impl Freeze for WorkflowTemplate
impl RefUnwindSafe for WorkflowTemplate
impl Send for WorkflowTemplate
impl Sync for WorkflowTemplate
impl Unpin for WorkflowTemplate
impl UnsafeUnpin for WorkflowTemplate
impl UnwindSafe for WorkflowTemplate
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