pub struct RecipeFlowBuilder<RECIPEEXCHANGE, RECIPEPROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, PROCESSSPECIFICATION> { /* private fields */ }
Expand description

Builder for RecipeFlow.

Implementations§

source§

impl<RECIPEEXCHANGE, RECIPEPROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, PROCESSSPECIFICATION> RecipeFlowBuilder<RECIPEEXCHANGE, RECIPEPROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, PROCESSSPECIFICATION>

source

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

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

source

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

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.

source

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

source

pub fn recipe_clause_of<VALUE: Into<Option<RECIPEEXCHANGE>>>( self, value: VALUE ) -> Self

Relates a flow to its exchange agreement in a recipe.

source

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

Relates an input flow to its process in a recipe.

source

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

Relates an output flow to its process in a recipe.

source

pub fn recipe_reciprocal_clause_of<VALUE: Into<Option<RECIPEEXCHANGE>>>( self, value: VALUE ) -> Self

Relates a reciprocal flow to its exchange agreement in a recipe.

source

pub fn resource_classified_as<VALUE: Into<Option<RESOURCECLASSIFIEDAS>>>( self, value: VALUE ) -> Self

References a concept in a common taxonomy or other classification scheme for purposes of categorization or grouping.

source

pub fn resource_conforms_to<VALUE: Into<Option<RESOURCESPECIFICATION>>>( self, value: VALUE ) -> Self

The primary resource specification or definition of an existing or potential economic resource. A resource will have only one, as this specifies exactly what the resource is.

source

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

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

source

pub fn stage<VALUE: Into<Option<PROCESSSPECIFICATION>>>( self, value: VALUE ) -> Self

References the ProcessSpecification of the last process the economic resource went through. Stage is used when the last process is important for finding proper resources, such as where the publishing process wants only documents that have gone through the editing process.

source

pub fn state<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self

The state of the desired economic resource, after coming out of a test or review process.

source

pub fn build( self ) -> Result<RecipeFlow<RECIPEEXCHANGE, RECIPEPROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, PROCESSSPECIFICATION>, RecipeFlowBuilderError>

Builds a new RecipeFlow.

§Errors

If a required field has not been initialized.

Trait Implementations§

source§

impl<RECIPEEXCHANGE, RECIPEPROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, PROCESSSPECIFICATION> Default for RecipeFlowBuilder<RECIPEEXCHANGE, RECIPEPROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, PROCESSSPECIFICATION>

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<RECIPEEXCHANGE, RECIPEPROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, PROCESSSPECIFICATION> Freeze for RecipeFlowBuilder<RECIPEEXCHANGE, RECIPEPROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, PROCESSSPECIFICATION>
where PROCESSSPECIFICATION: Freeze, RECIPEEXCHANGE: Freeze, RECIPEPROCESS: Freeze, RESOURCECLASSIFIEDAS: Freeze, RESOURCESPECIFICATION: Freeze,

§

impl<RECIPEEXCHANGE, RECIPEPROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, PROCESSSPECIFICATION> RefUnwindSafe for RecipeFlowBuilder<RECIPEEXCHANGE, RECIPEPROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, PROCESSSPECIFICATION>
where PROCESSSPECIFICATION: RefUnwindSafe, RECIPEEXCHANGE: RefUnwindSafe, RECIPEPROCESS: RefUnwindSafe, RESOURCECLASSIFIEDAS: RefUnwindSafe, RESOURCESPECIFICATION: RefUnwindSafe,

§

impl<RECIPEEXCHANGE, RECIPEPROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, PROCESSSPECIFICATION> Send for RecipeFlowBuilder<RECIPEEXCHANGE, RECIPEPROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, PROCESSSPECIFICATION>
where PROCESSSPECIFICATION: Send, RECIPEEXCHANGE: Send, RECIPEPROCESS: Send, RESOURCECLASSIFIEDAS: Send, RESOURCESPECIFICATION: Send,

§

impl<RECIPEEXCHANGE, RECIPEPROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, PROCESSSPECIFICATION> Sync for RecipeFlowBuilder<RECIPEEXCHANGE, RECIPEPROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, PROCESSSPECIFICATION>
where PROCESSSPECIFICATION: Sync, RECIPEEXCHANGE: Sync, RECIPEPROCESS: Sync, RESOURCECLASSIFIEDAS: Sync, RESOURCESPECIFICATION: Sync,

§

impl<RECIPEEXCHANGE, RECIPEPROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, PROCESSSPECIFICATION> Unpin for RecipeFlowBuilder<RECIPEEXCHANGE, RECIPEPROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, PROCESSSPECIFICATION>
where PROCESSSPECIFICATION: Unpin, RECIPEEXCHANGE: Unpin, RECIPEPROCESS: Unpin, RESOURCECLASSIFIEDAS: Unpin, RESOURCESPECIFICATION: Unpin,

§

impl<RECIPEEXCHANGE, RECIPEPROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, PROCESSSPECIFICATION> UnwindSafe for RecipeFlowBuilder<RECIPEEXCHANGE, RECIPEPROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, PROCESSSPECIFICATION>
where PROCESSSPECIFICATION: UnwindSafe, RECIPEEXCHANGE: UnwindSafe, RECIPEPROCESS: UnwindSafe, RESOURCECLASSIFIEDAS: UnwindSafe, RESOURCESPECIFICATION: UnwindSafe,

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>,

§

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>,

§

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.