Struct vf_rs::vf::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 copy 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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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 PROCESSCLASSIFIEDAS: RefUnwindSafe, PROCESSSPECIFICATION: RefUnwindSafe, RECIPEFLOW: RefUnwindSafe,

§

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

§

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

§

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

§

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

§

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

§

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.
source§

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