Enum SubStep

Source
pub enum SubStep {
    Objective(String),
    OutOfScope(String),
    ActionSequence(Vec<Action>),
    Command(String),
    Image(String, String),
    Warning(String),
    Verification(Requirement),
    Resource(Resource),
    Context(String),
    Table(Table),
}
Expand description

Each row within a step contributes to a SubStep. Some SubStep types (e.g. ActionSequence) contain information from multiple consecutive rows, whereas others (all others?) contain information from a single markup file row.

Variants§

§

Objective(String)

Each objective of the process achieved in this step has a single SubStep of type Objective, simply passing through the string found

§

OutOfScope(String)

Each out-of-scope declaration tells what this procedure doesn’t do, and should tell where in the process library such scope can be found

§

ActionSequence(Vec<Action>)

Each element of the ActionSequence vector is the information from a single Action row. Consecutive Action rows in a markup file are bundled into the ActionSequence type of SubStep.

§

Command(String)

Each command row has a String that is verbatim what the operator should type (or paste) into a computer system

§

Image(String, String)

Each Image row has a file name of an image to display on screen (first tuple String) and the caption text to display under the image (second tuple String)

§

Warning(String)

Warning text is something the author wants to force the operator to read prior to proceeding

§

Verification(Requirement)

Each Verification row includes sufficient information to form a Verification struct

§

Resource(Resource)

Each Resource row has a String describing a single resource needed to perform the current step

§

Context(String)

Vanilla text blocks, to be used sparingly lest the process document get too wordy

§

Table(Table)

Arbitrary-sized table from comma-separated data

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.