pub struct Task { /* private fields */ }Expand description
A task in a WDL document.
Implementations§
Source§impl Task
impl Task
Sourcepub fn new(
name: String,
meta_section: Option<MetadataSection>,
parameter_meta: Option<ParameterMetadataSection>,
input_section: Option<InputSection>,
output_section: Option<OutputSection>,
runtime_section: Option<RuntimeSection>,
) -> Self
pub fn new( name: String, meta_section: Option<MetadataSection>, parameter_meta: Option<ParameterMetadataSection>, input_section: Option<InputSection>, output_section: Option<OutputSection>, runtime_section: Option<RuntimeSection>, ) -> Self
Create a new task.
Sourcepub fn render_meta(&self) -> Markup
pub fn render_meta(&self) -> Markup
Render the meta section of the task as HTML.
This will render all metadata key-value pairs except for outputs and
description.
Sourcepub fn render_runtime_section(&self) -> Markup
pub fn render_runtime_section(&self) -> Markup
Render the runtime section of the task as HTML.
Trait Implementations§
Source§impl Callable for Task
impl Callable for Task
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 Task
impl !RefUnwindSafe for Task
impl !Send for Task
impl !Sync for Task
impl Unpin for Task
impl !UnwindSafe for Task
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