pub struct RecipeProcessBuilder<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION> { /* private fields */ }
Expand description

Builder for RecipeProcess.

Implementations§

source§

impl<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION> RecipeProcessBuilder<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>

source

pub fn has_duration<VALUE: Into<Option<Duration>>>(self, value: VALUE) -> Self

source

pub fn has_recipe_input<VALUE: Into<Option<RECIPEFLOW>>>( self, value: VALUE ) -> Self

All the inputs of a recipe process.

source

pub fn has_recipe_output<VALUE: Into<Option<RECIPEFLOW>>>( self, value: VALUE ) -> Self

All the outputs of a recipe process.

source

pub fn image<VALUE: Into<Option<Url>>>(self, value: VALUE) -> Self

The uri to an image relevant to the entity, such as a logo, avatar, photo, diagram, etc.

source

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

An informal or formal textual identifier for an object. Does not imply uniqueness.

source

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

source

pub fn process_classified_as<VALUE: Into<Vec<PROCESSCLASSIFIEDAS>>>( self, value: VALUE ) -> Self

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

source

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

The standard specification or definition of a process.

source

pub fn build( self ) -> Result<RecipeProcess<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>, RecipeProcessBuilderError>

Builds a new RecipeProcess.

§Errors

If a required field has not been initialized.

Trait Implementations§

source§

impl<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION> Default for RecipeProcessBuilder<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>

source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION> Freeze for RecipeProcessBuilder<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>
where PROCESSSPECIFICATION: Freeze, RECIPEFLOW: Freeze,

§

impl<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION> RefUnwindSafe for RecipeProcessBuilder<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>
where PROCESSCLASSIFIEDAS: RefUnwindSafe, PROCESSSPECIFICATION: RefUnwindSafe, RECIPEFLOW: RefUnwindSafe,

§

impl<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION> Send for RecipeProcessBuilder<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>
where PROCESSCLASSIFIEDAS: Send, PROCESSSPECIFICATION: Send, RECIPEFLOW: Send,

§

impl<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION> Sync for RecipeProcessBuilder<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>
where PROCESSCLASSIFIEDAS: Sync, PROCESSSPECIFICATION: Sync, RECIPEFLOW: Sync,

§

impl<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION> Unpin for RecipeProcessBuilder<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>
where PROCESSCLASSIFIEDAS: Unpin, PROCESSSPECIFICATION: Unpin, RECIPEFLOW: Unpin,

§

impl<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION> UnwindSafe for RecipeProcessBuilder<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>
where PROCESSCLASSIFIEDAS: UnwindSafe, PROCESSSPECIFICATION: UnwindSafe, RECIPEFLOW: 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.