[][src]Struct vf_rs::vf::Fulfillment

pub struct Fulfillment<ECONOMICEVENT, COMMITMENT> { /* fields omitted */ }

Represents many-to-many relationships between commitments and economic events that fully or partially satisfy one or more commitments.

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

Implementations

impl<ECONOMICEVENT, COMMITMENT> Fulfillment<ECONOMICEVENT, COMMITMENT>[src]

pub fn effort_quantity(&self) -> &Option<Measure>[src]

The amount and unit of the work or use or citation effort-based action. This is often a time duration, but also could be cycle counts or other measures of effort or usefulness.

pub fn fulfilled_by(&self) -> &ECONOMICEVENT[src]

The economic event which completely or partially fulfills a commitment.

pub fn fulfills(&self) -> &COMMITMENT[src]

The commitment which is completely or partially fulfilled by an economic event.

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

pub fn resource_quantity(&self) -> &Option<Measure>[src]

The amount and unit of the economic resource counted or inventoried.

impl<ECONOMICEVENT, COMMITMENT> Fulfillment<ECONOMICEVENT, COMMITMENT>[src]

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

The amount and unit of the work or use or citation effort-based action. This is often a time duration, but also could be cycle counts or other measures of effort or usefulness.

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

The economic event which completely or partially fulfills a commitment.

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

The commitment which is completely or partially fulfilled by an economic event.

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

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

The amount and unit of the economic resource counted or inventoried.

impl<ECONOMICEVENT, COMMITMENT> Fulfillment<ECONOMICEVENT, COMMITMENT>[src]

pub fn effort_quantity_mut(&mut self) -> &mut Option<Measure>[src]

The amount and unit of the work or use or citation effort-based action. This is often a time duration, but also could be cycle counts or other measures of effort or usefulness.

pub fn fulfilled_by_mut(&mut self) -> &mut ECONOMICEVENT[src]

The economic event which completely or partially fulfills a commitment.

pub fn fulfills_mut(&mut self) -> &mut COMMITMENT[src]

The commitment which is completely or partially fulfilled by an economic event.

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

pub fn resource_quantity_mut(&mut self) -> &mut Option<Measure>[src]

The amount and unit of the economic resource counted or inventoried.

impl<ECONOMICEVENT, COMMITMENT> Fulfillment<ECONOMICEVENT, COMMITMENT>[src]

pub fn builder() -> FulfillmentBuilder<ECONOMICEVENT, COMMITMENT>[src]

Create an empty builder object for Fulfillment

pub fn into_builder(self) -> FulfillmentBuilder<ECONOMICEVENT, COMMITMENT>[src]

Turns Fulfillment into FulfillmentBuilder

Trait Implementations

impl<ECONOMICEVENT: Clone, COMMITMENT: Clone> Clone for Fulfillment<ECONOMICEVENT, COMMITMENT>[src]

impl<ECONOMICEVENT: Debug, COMMITMENT: Debug> Debug for Fulfillment<ECONOMICEVENT, COMMITMENT>[src]

impl<'de, ECONOMICEVENT, COMMITMENT> Deserialize<'de> for Fulfillment<ECONOMICEVENT, COMMITMENT> where
    ECONOMICEVENT: Deserialize<'de>,
    COMMITMENT: Deserialize<'de>, 
[src]

impl<ECONOMICEVENT: PartialEq, COMMITMENT: PartialEq> PartialEq<Fulfillment<ECONOMICEVENT, COMMITMENT>> for Fulfillment<ECONOMICEVENT, COMMITMENT>[src]

impl<ECONOMICEVENT, COMMITMENT> Serialize for Fulfillment<ECONOMICEVENT, COMMITMENT> where
    ECONOMICEVENT: Serialize,
    COMMITMENT: Serialize
[src]

impl<ECONOMICEVENT, COMMITMENT> StructuralPartialEq for Fulfillment<ECONOMICEVENT, COMMITMENT>[src]

Auto Trait Implementations

impl<ECONOMICEVENT, COMMITMENT> RefUnwindSafe for Fulfillment<ECONOMICEVENT, COMMITMENT> where
    COMMITMENT: RefUnwindSafe,
    ECONOMICEVENT: RefUnwindSafe

impl<ECONOMICEVENT, COMMITMENT> Send for Fulfillment<ECONOMICEVENT, COMMITMENT> where
    COMMITMENT: Send,
    ECONOMICEVENT: Send

impl<ECONOMICEVENT, COMMITMENT> Sync for Fulfillment<ECONOMICEVENT, COMMITMENT> where
    COMMITMENT: Sync,
    ECONOMICEVENT: Sync

impl<ECONOMICEVENT, COMMITMENT> Unpin for Fulfillment<ECONOMICEVENT, COMMITMENT> where
    COMMITMENT: Unpin,
    ECONOMICEVENT: Unpin

impl<ECONOMICEVENT, COMMITMENT> UnwindSafe for Fulfillment<ECONOMICEVENT, COMMITMENT> where
    COMMITMENT: UnwindSafe,
    ECONOMICEVENT: 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.