[][src]Struct vf_rs::vf::RecipeResource

pub struct RecipeResource<RESOURCESPECIFICATION> { /* fields omitted */ }

Specifies the resource as part of a recipe, for use in planning from recipe.

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

Implementations

impl<RESOURCESPECIFICATION> RecipeResource<RESOURCESPECIFICATION>[src]

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

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

pub fn name(&self) -> &String[src]

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

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

pub fn resource_classified_as(&self) -> &Vec<Url>[src]

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

pub fn resource_conforms_to(&self) -> &Option<RESOURCESPECIFICATION>[src]

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.

pub fn substitutable(&self) -> &Option<bool>[src]

Defines if any resource of that type can be freely substituted for any other resource of that type when used, consumed, traded, etc.

pub fn unit_of_effort(&self) -> &Option<Unit>[src]

The unit used for use or work or sometimes cite actions.

pub fn unit_of_resource(&self) -> &Option<Unit>[src]

The unit used for this resource in the recipe.

impl<RESOURCESPECIFICATION> RecipeResource<RESOURCESPECIFICATION>[src]

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

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

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

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

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

pub fn set_resource_classified_as(&mut self, val: Vec<Url>) -> &mut Self[src]

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

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

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.

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

Defines if any resource of that type can be freely substituted for any other resource of that type when used, consumed, traded, etc.

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

The unit used for use or work or sometimes cite actions.

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

The unit used for this resource in the recipe.

impl<RESOURCESPECIFICATION> RecipeResource<RESOURCESPECIFICATION>[src]

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

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

pub fn name_mut(&mut self) -> &mut String[src]

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

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

pub fn resource_classified_as_mut(&mut self) -> &mut Vec<Url>[src]

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

pub fn resource_conforms_to_mut(&mut self) -> &mut Option<RESOURCESPECIFICATION>[src]

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.

pub fn substitutable_mut(&mut self) -> &mut Option<bool>[src]

Defines if any resource of that type can be freely substituted for any other resource of that type when used, consumed, traded, etc.

pub fn unit_of_effort_mut(&mut self) -> &mut Option<Unit>[src]

The unit used for use or work or sometimes cite actions.

pub fn unit_of_resource_mut(&mut self) -> &mut Option<Unit>[src]

The unit used for this resource in the recipe.

impl<RESOURCESPECIFICATION> RecipeResource<RESOURCESPECIFICATION>[src]

pub fn builder() -> RecipeResourceBuilder<RESOURCESPECIFICATION>[src]

Create an empty builder object for RecipeResource

pub fn into_builder(self) -> RecipeResourceBuilder<RESOURCESPECIFICATION>[src]

Turns RecipeResource into RecipeResourceBuilder

Trait Implementations

impl<RESOURCESPECIFICATION: Clone> Clone for RecipeResource<RESOURCESPECIFICATION>[src]

impl<RESOURCESPECIFICATION: Debug> Debug for RecipeResource<RESOURCESPECIFICATION>[src]

impl<'de, RESOURCESPECIFICATION> Deserialize<'de> for RecipeResource<RESOURCESPECIFICATION> where
    RESOURCESPECIFICATION: Deserialize<'de>, 
[src]

impl<RESOURCESPECIFICATION: PartialEq> PartialEq<RecipeResource<RESOURCESPECIFICATION>> for RecipeResource<RESOURCESPECIFICATION>[src]

impl<RESOURCESPECIFICATION> Serialize for RecipeResource<RESOURCESPECIFICATION> where
    RESOURCESPECIFICATION: Serialize
[src]

impl<RESOURCESPECIFICATION> StructuralPartialEq for RecipeResource<RESOURCESPECIFICATION>[src]

Auto Trait Implementations

impl<RESOURCESPECIFICATION> RefUnwindSafe for RecipeResource<RESOURCESPECIFICATION> where
    RESOURCESPECIFICATION: RefUnwindSafe

impl<RESOURCESPECIFICATION> Send for RecipeResource<RESOURCESPECIFICATION> where
    RESOURCESPECIFICATION: Send

impl<RESOURCESPECIFICATION> Sync for RecipeResource<RESOURCESPECIFICATION> where
    RESOURCESPECIFICATION: Sync

impl<RESOURCESPECIFICATION> Unpin for RecipeResource<RESOURCESPECIFICATION> where
    RESOURCESPECIFICATION: Unpin

impl<RESOURCESPECIFICATION> UnwindSafe for RecipeResource<RESOURCESPECIFICATION> where
    RESOURCESPECIFICATION: 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.