[][src]Struct vf_rs::vf::builders::RecipeFlowBuilder

pub struct RecipeFlowBuilder<RECIPERESOURCE, RECIPEPROCESS> { /* fields omitted */ }

Builder for RecipeFlow.

Implementations

impl<RECIPERESOURCE, RECIPEPROCESS> RecipeFlowBuilder<RECIPERESOURCE, RECIPEPROCESS>[src]

pub fn action<VALUE: Into<Action>>(self, value: VALUE) -> Self[src]

Defines the kind of flow, such as consume, produce, work, transfer, etc.

pub fn effort_quantity<VALUE: Into<Measure>>(self, value: VALUE) -> Self[src]

The amount and unit of the work or use or citation effort-based action. This is often a time duration, but also could be cycle counts or other measures of effort or usefulness.

pub fn note<VALUE: Into<String>>(self, value: VALUE) -> Self[src]

pub fn recipe_flow_resource<VALUE: Into<RECIPERESOURCE>>(
    self,
    value: VALUE
) -> Self
[src]

The resource definition referenced by this flow in the recipe.

pub fn recipe_input_of<VALUE: Into<RECIPEPROCESS>>(self, value: VALUE) -> Self[src]

Relates an input flow to it's process in a recipe.

pub fn recipe_output_of<VALUE: Into<RECIPEPROCESS>>(self, value: VALUE) -> Self[src]

Relates an output flow to it's process in a recipe.

pub fn resource_quantity<VALUE: Into<Measure>>(self, value: VALUE) -> Self[src]

The amount and unit of the economic resource counted or inventoried.

pub fn build(self) -> Result<RecipeFlow<RECIPERESOURCE, RECIPEPROCESS>, String>[src]

Builds a new RecipeFlow.

Errors

If a required field has not been initialized.

Trait Implementations

impl<RECIPERESOURCE: Default, RECIPEPROCESS: Default> Default for RecipeFlowBuilder<RECIPERESOURCE, RECIPEPROCESS>[src]

Auto Trait Implementations

impl<RECIPERESOURCE, RECIPEPROCESS> RefUnwindSafe for RecipeFlowBuilder<RECIPERESOURCE, RECIPEPROCESS> where
    RECIPEPROCESS: RefUnwindSafe,
    RECIPERESOURCE: RefUnwindSafe

impl<RECIPERESOURCE, RECIPEPROCESS> Send for RecipeFlowBuilder<RECIPERESOURCE, RECIPEPROCESS> where
    RECIPEPROCESS: Send,
    RECIPERESOURCE: Send

impl<RECIPERESOURCE, RECIPEPROCESS> Sync for RecipeFlowBuilder<RECIPERESOURCE, RECIPEPROCESS> where
    RECIPEPROCESS: Sync,
    RECIPERESOURCE: Sync

impl<RECIPERESOURCE, RECIPEPROCESS> Unpin for RecipeFlowBuilder<RECIPERESOURCE, RECIPEPROCESS> where
    RECIPEPROCESS: Unpin,
    RECIPERESOURCE: Unpin

impl<RECIPERESOURCE, RECIPEPROCESS> UnwindSafe for RecipeFlowBuilder<RECIPERESOURCE, RECIPEPROCESS> where
    RECIPEPROCESS: UnwindSafe,
    RECIPERESOURCE: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.