Struct RecipeProcess

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

Specifies a process in a recipe for use in planning from recipe.

ID: https://w3id.org/valueflows/ont/vf#RecipeProcess

Implementations§

Source§

impl<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION> RecipeProcess<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>

Source

pub fn has_duration_mut(&mut self) -> &mut Option<Duration>

Source

pub fn has_recipe_input_mut(&mut self) -> &mut Option<RECIPEFLOW>

All the inputs of a recipe process.

Source

pub fn has_recipe_output_mut(&mut self) -> &mut Option<RECIPEFLOW>

All the outputs of a recipe process.

Source

pub fn image_mut(&mut self) -> &mut Option<Url>

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

Source

pub fn name_mut(&mut self) -> &mut String

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

Source

pub fn note_mut(&mut self) -> &mut Option<String>

Source

pub fn process_classified_as_mut(&mut self) -> &mut Vec<PROCESSCLASSIFIEDAS>

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

Source

pub fn process_conforms_to_mut(&mut self) -> &mut PROCESSSPECIFICATION

The standard specification or definition of a process.

Source§

impl<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION> RecipeProcess<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>

Source

pub fn set_has_duration(&mut self, val: Option<Duration>) -> &mut Self

Source

pub fn set_has_recipe_input(&mut self, val: Option<RECIPEFLOW>) -> &mut Self

All the inputs of a recipe process.

Source

pub fn set_has_recipe_output(&mut self, val: Option<RECIPEFLOW>) -> &mut Self

All the outputs of a recipe process.

Source

pub fn set_image(&mut self, val: Option<Url>) -> &mut Self

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

Source

pub fn set_name(&mut self, val: String) -> &mut Self

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

Source

pub fn set_note(&mut self, val: Option<String>) -> &mut Self

Source

pub fn set_process_classified_as( &mut self, val: Vec<PROCESSCLASSIFIEDAS>, ) -> &mut Self

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

Source

pub fn set_process_conforms_to( &mut self, val: PROCESSSPECIFICATION, ) -> &mut Self

The standard specification or definition of a process.

Source§

impl<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION> RecipeProcess<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>

Source

pub fn has_duration(&self) -> &Option<Duration>

Source

pub fn has_recipe_input(&self) -> &Option<RECIPEFLOW>

All the inputs of a recipe process.

Source

pub fn has_recipe_output(&self) -> &Option<RECIPEFLOW>

All the outputs of a recipe process.

Source

pub fn image(&self) -> &Option<Url>

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

Source

pub fn name(&self) -> &String

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

Source

pub fn note(&self) -> &Option<String>

Source

pub fn process_classified_as(&self) -> &Vec<PROCESSCLASSIFIEDAS>

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

Source

pub fn process_conforms_to(&self) -> &PROCESSSPECIFICATION

The standard specification or definition of a process.

Source§

impl<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION> RecipeProcess<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>

Source

pub fn builder() -> RecipeProcessBuilder<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>

Create an empty builder object for RecipeProcess

Source

pub fn into_builder( self, ) -> RecipeProcessBuilder<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>

Turns RecipeProcess into RecipeProcessBuilder

Trait Implementations§

Source§

impl<RECIPEFLOW: Clone, PROCESSCLASSIFIEDAS: Clone, PROCESSSPECIFICATION: Clone> Clone for RecipeProcess<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>

Source§

fn clone( &self, ) -> RecipeProcess<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<RECIPEFLOW: Debug, PROCESSCLASSIFIEDAS: Debug, PROCESSSPECIFICATION: Debug> Debug for RecipeProcess<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de, RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION> Deserialize<'de> for RecipeProcess<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>
where RECIPEFLOW: Deserialize<'de>, PROCESSCLASSIFIEDAS: Deserialize<'de>, PROCESSSPECIFICATION: Deserialize<'de>,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<RECIPEFLOW: PartialEq, PROCESSCLASSIFIEDAS: PartialEq, PROCESSSPECIFICATION: PartialEq> PartialEq for RecipeProcess<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>

Source§

fn eq( &self, other: &RecipeProcess<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>, ) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION> Serialize for RecipeProcess<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>
where RECIPEFLOW: Serialize, PROCESSCLASSIFIEDAS: Serialize, PROCESSSPECIFICATION: Serialize,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION> StructuralPartialEq for RecipeProcess<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

impl<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION> UnwindSafe for RecipeProcess<RECIPEFLOW, PROCESSCLASSIFIEDAS, PROCESSSPECIFICATION>
where PROCESSSPECIFICATION: UnwindSafe, RECIPEFLOW: UnwindSafe, PROCESSCLASSIFIEDAS: 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,