pub struct Workflow { /* private fields */ }Expand description
A workflow in a WDL document.
Implementations§
Source§impl Workflow
impl Workflow
Sourcepub fn new(
name: String,
meta_section: Option<MetadataSection>,
parameter_meta: Option<ParameterMetadataSection>,
input_section: Option<InputSection>,
output_section: Option<OutputSection>,
) -> Self
pub fn new( name: String, meta_section: Option<MetadataSection>, parameter_meta: Option<ParameterMetadataSection>, input_section: Option<InputSection>, output_section: Option<OutputSection>, ) -> Self
Create a new workflow.
Sourcepub fn name_override(&self) -> Option<Markup>
pub fn name_override(&self) -> Option<Markup>
Returns the name entry from the meta section, if it exists.
Sourcepub fn category(&self) -> Option<String>
pub fn category(&self) -> Option<String>
Returns the category entry from the meta section, if it exists.
Sourcepub fn render_meta(&self) -> Markup
pub fn render_meta(&self) -> Markup
Renders the meta section of the workflow as HTML.
This will render all metadata key-value pairs except for name,
category, description, and outputs.
Trait Implementations§
Source§impl Callable for Workflow
impl Callable for Workflow
Source§fn description(&self) -> Markup
fn description(&self) -> Markup
Get the description of the callable.
Source§fn required_inputs(&self) -> impl Iterator<Item = &Parameter>
fn required_inputs(&self) -> impl Iterator<Item = &Parameter>
Get the required input parameters of the callable.
Source§fn input_groups(&self) -> BTreeSet<Group>
fn input_groups(&self) -> BTreeSet<Group>
Get the sorted set of unique
group values of the inputs. Read moreSource§fn inputs_in_group<'a>(
&'a self,
group: &'a Group,
) -> impl Iterator<Item = &'a Parameter>
fn inputs_in_group<'a>( &'a self, group: &'a Group, ) -> impl Iterator<Item = &'a Parameter>
Get the inputs of the callable that are part of
group.Source§fn other_inputs(&self) -> impl Iterator<Item = &Parameter>
fn other_inputs(&self) -> impl Iterator<Item = &Parameter>
Get the inputs of the callable that are neither required nor part of a
group.
Source§fn render_required_inputs(&self) -> Markup
fn render_required_inputs(&self) -> Markup
Render the required inputs of the callable.
Source§fn render_group_inputs(&self) -> Markup
fn render_group_inputs(&self) -> Markup
Render the inputs with a group of the callable.
Source§fn render_other_inputs(&self) -> Markup
fn render_other_inputs(&self) -> Markup
Render the inputs that are neither required nor part of a group.
Source§fn render_inputs(&self) -> Markup
fn render_inputs(&self) -> Markup
Render the inputs of the callable.
Source§fn render_outputs(&self) -> Markup
fn render_outputs(&self) -> Markup
Render the outputs of the callable.
Auto Trait Implementations§
impl Freeze for Workflow
impl !RefUnwindSafe for Workflow
impl !Send for Workflow
impl !Sync for Workflow
impl Unpin for Workflow
impl !UnwindSafe for Workflow
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> 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