[][src]Struct vf_rs::vf::RecipeFlow

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

The specification of a resource inflow to, or outflow from, a recipe process.

ID: https://w3id.org/valueflows#RecipeFlow

Implementations

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

pub fn action(&self) -> &Action[src]

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

pub fn effort_quantity(&self) -> &Option<Measure>[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(&self) -> &Option<String>[src]

pub fn recipe_flow_resource(&self) -> &Option<RECIPERESOURCE>[src]

The resource definition referenced by this flow in the recipe.

pub fn recipe_input_of(&self) -> &Option<RECIPEPROCESS>[src]

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

pub fn recipe_output_of(&self) -> &Option<RECIPEPROCESS>[src]

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

pub fn resource_quantity(&self) -> &Option<Measure>[src]

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

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

pub fn set_action(&mut self, val: Action) -> &mut Self[src]

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

pub fn set_effort_quantity(&mut self, val: Option<Measure>) -> &mut 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 set_note(&mut self, val: Option<String>) -> &mut Self[src]

pub fn set_recipe_flow_resource(
    &mut self,
    val: Option<RECIPERESOURCE>
) -> &mut Self
[src]

The resource definition referenced by this flow in the recipe.

pub fn set_recipe_input_of(&mut self, val: Option<RECIPEPROCESS>) -> &mut Self[src]

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

pub fn set_recipe_output_of(&mut self, val: Option<RECIPEPROCESS>) -> &mut Self[src]

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

pub fn set_resource_quantity(&mut self, val: Option<Measure>) -> &mut Self[src]

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

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

pub fn action_mut(&mut self) -> &mut Action[src]

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

pub fn effort_quantity_mut(&mut self) -> &mut Option<Measure>[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_mut(&mut self) -> &mut Option<String>[src]

pub fn recipe_flow_resource_mut(&mut self) -> &mut Option<RECIPERESOURCE>[src]

The resource definition referenced by this flow in the recipe.

pub fn recipe_input_of_mut(&mut self) -> &mut Option<RECIPEPROCESS>[src]

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

pub fn recipe_output_of_mut(&mut self) -> &mut Option<RECIPEPROCESS>[src]

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

pub fn resource_quantity_mut(&mut self) -> &mut Option<Measure>[src]

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

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

pub fn builder() -> RecipeFlowBuilder<RECIPERESOURCE, RECIPEPROCESS>[src]

Create an empty builder object for RecipeFlow

pub fn into_builder(self) -> RecipeFlowBuilder<RECIPERESOURCE, RECIPEPROCESS>[src]

Turns RecipeFlow into RecipeFlowBuilder

Trait Implementations

impl<RECIPERESOURCE: Clone, RECIPEPROCESS: Clone> Clone for RecipeFlow<RECIPERESOURCE, RECIPEPROCESS>[src]

impl<RECIPERESOURCE: Debug, RECIPEPROCESS: Debug> Debug for RecipeFlow<RECIPERESOURCE, RECIPEPROCESS>[src]

impl<'de, RECIPERESOURCE, RECIPEPROCESS> Deserialize<'de> for RecipeFlow<RECIPERESOURCE, RECIPEPROCESS> where
    RECIPERESOURCE: Deserialize<'de>,
    RECIPEPROCESS: Deserialize<'de>, 
[src]

impl<RECIPERESOURCE: PartialEq, RECIPEPROCESS: PartialEq> PartialEq<RecipeFlow<RECIPERESOURCE, RECIPEPROCESS>> for RecipeFlow<RECIPERESOURCE, RECIPEPROCESS>[src]

impl<RECIPERESOURCE, RECIPEPROCESS> Serialize for RecipeFlow<RECIPERESOURCE, RECIPEPROCESS> where
    RECIPERESOURCE: Serialize,
    RECIPEPROCESS: Serialize
[src]

impl<RECIPERESOURCE, RECIPEPROCESS> StructuralPartialEq for RecipeFlow<RECIPERESOURCE, RECIPEPROCESS>[src]

Auto Trait Implementations

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

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

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

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

impl<RECIPERESOURCE, RECIPEPROCESS> UnwindSafe for RecipeFlow<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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.