[][src]Struct vf_rs::resource_specification::ResourceSpecification

pub struct ResourceSpecification {
    pub image: Option<Url>,
    pub name: String,
    pub note: Option<String>,
}

Specification of a kind of resource. Could define a material item, service, digital item, currency account, etc. Used instead of a classification when more information is needed, particularly for recipes.

ID: https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/ResourceSpecification.json

Fields

image: Option<Url>

The uri to an image relevant to the item, such as a photo, diagram, etc.

name: String

An informal or formal textual identifier for the item. Does not imply uniqueness.

note: Option<String>

A textual comment or description.

Methods

impl ResourceSpecification[src]

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