[][src]Struct vf_rs::vf::ResourceSpecification

pub struct ResourceSpecification { /* fields omitted */ }

Specification of a kind of resource. Could define a material item, service, digital item, currency account, etc.

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

Implementations

impl 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.

impl 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.

impl 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.

impl ResourceSpecification[src]

pub fn builder() -> ResourceSpecificationBuilder[src]

Create an empty builder object for ResourceSpecification

pub fn into_builder(self) -> ResourceSpecificationBuilder[src]

Turns ResourceSpecification into ResourceSpecificationBuilder

Trait Implementations

impl Clone for ResourceSpecification[src]

impl Debug for ResourceSpecification[src]

impl<'de> Deserialize<'de> for ResourceSpecification[src]

impl PartialEq<ResourceSpecification> for ResourceSpecification[src]

impl Serialize for ResourceSpecification[src]

impl StructuralPartialEq for ResourceSpecification[src]

Auto Trait Implementations

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.