Skip to main content

WorkflowRef

Type Alias WorkflowRef 

Source
pub type WorkflowRef<'a> = MaybeImported<&'a Workflow, &'a ImportedWorkflow>;
Expand description

A reference to a workflow in the document’s scope.

Aliased Type§

pub enum WorkflowRef<'a> {
    Local(&'a Workflow),
    Imported(&'a ImportedWorkflow),
}

Variants§

§

Local(&'a Workflow)

The item is locally defined.

§

Imported(&'a ImportedWorkflow)

The item was imported from another document.

Implementations§

Source§

impl<'a> WorkflowRef<'a>

Source

pub fn name(&self) -> &'a str

Gets the name of the workflow.

Source

pub fn name_span(&self) -> Span

Gets the span of the name.

Source

pub fn inputs(&self) -> Arc<IndexMap<String, Input>> ⓘ

The inputs of the workflow.

Source

pub fn outputs(&self) -> Arc<IndexMap<String, Output>> ⓘ

The outputs of the workflow.

Source

pub fn source(&self) -> Option<Arc<Url>>

Gets the source of the workflow, if it was imported.