[−][src]Struct vf_rs::vf::RecipeResource
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]
&mut self,
val: Option<RESOURCESPECIFICATION>
) -> &mut 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.
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]
fn clone(&self) -> RecipeResource<RESOURCESPECIFICATION>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<RESOURCESPECIFICATION: Debug> Debug for RecipeResource<RESOURCESPECIFICATION>
[src]
impl<'de, RESOURCESPECIFICATION> Deserialize<'de> for RecipeResource<RESOURCESPECIFICATION> where
RESOURCESPECIFICATION: Deserialize<'de>,
[src]
RESOURCESPECIFICATION: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<RESOURCESPECIFICATION: PartialEq> PartialEq<RecipeResource<RESOURCESPECIFICATION>> for RecipeResource<RESOURCESPECIFICATION>
[src]
fn eq(&self, other: &RecipeResource<RESOURCESPECIFICATION>) -> bool
[src]
fn ne(&self, other: &RecipeResource<RESOURCESPECIFICATION>) -> bool
[src]
impl<RESOURCESPECIFICATION> Serialize for RecipeResource<RESOURCESPECIFICATION> where
RESOURCESPECIFICATION: Serialize,
[src]
RESOURCESPECIFICATION: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<RESOURCESPECIFICATION> StructuralPartialEq for RecipeResource<RESOURCESPECIFICATION>
[src]
Auto Trait Implementations
impl<RESOURCESPECIFICATION> RefUnwindSafe for RecipeResource<RESOURCESPECIFICATION> where
RESOURCESPECIFICATION: RefUnwindSafe,
RESOURCESPECIFICATION: RefUnwindSafe,
impl<RESOURCESPECIFICATION> Send for RecipeResource<RESOURCESPECIFICATION> where
RESOURCESPECIFICATION: Send,
RESOURCESPECIFICATION: Send,
impl<RESOURCESPECIFICATION> Sync for RecipeResource<RESOURCESPECIFICATION> where
RESOURCESPECIFICATION: Sync,
RESOURCESPECIFICATION: Sync,
impl<RESOURCESPECIFICATION> Unpin for RecipeResource<RESOURCESPECIFICATION> where
RESOURCESPECIFICATION: Unpin,
RESOURCESPECIFICATION: Unpin,
impl<RESOURCESPECIFICATION> UnwindSafe for RecipeResource<RESOURCESPECIFICATION> where
RESOURCESPECIFICATION: UnwindSafe,
RESOURCESPECIFICATION: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,