[][src]Struct vf_rs::vf::Satisfaction

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

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

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

Implementations

impl<COMMITMENT, ECONOMICEVENT, INTENT> Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT>[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 note(&self) -> &Option<String>[src]

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

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

pub fn satisfied_by(
    &self
) -> &CommitmentEconomicEventUnion<COMMITMENT, ECONOMICEVENT>
[src]

A commitment or economic event fully or partially satisfying an intent

pub fn satisfies(&self) -> &INTENT[src]

An intent satisfied fully or partially by an economic event or commitment.

impl<COMMITMENT, ECONOMICEVENT, INTENT> Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT>[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_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.

pub fn set_satisfied_by(
    &mut self,
    val: CommitmentEconomicEventUnion<COMMITMENT, ECONOMICEVENT>
) -> &mut Self
[src]

A commitment or economic event fully or partially satisfying an intent

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

An intent satisfied fully or partially by an economic event or commitment.

impl<COMMITMENT, ECONOMICEVENT, INTENT> Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT>[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 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.

pub fn satisfied_by_mut(
    &mut self
) -> &mut CommitmentEconomicEventUnion<COMMITMENT, ECONOMICEVENT>
[src]

A commitment or economic event fully or partially satisfying an intent

pub fn satisfies_mut(&mut self) -> &mut INTENT[src]

An intent satisfied fully or partially by an economic event or commitment.

impl<COMMITMENT, ECONOMICEVENT, INTENT> Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT>[src]

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

Create an empty builder object for Satisfaction

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

Turns Satisfaction into SatisfactionBuilder

Trait Implementations

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

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

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

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

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

impl<COMMITMENT, ECONOMICEVENT, INTENT> StructuralPartialEq for Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT>[src]

Auto Trait Implementations

impl<COMMITMENT, ECONOMICEVENT, INTENT> RefUnwindSafe for Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT> where
    COMMITMENT: RefUnwindSafe,
    ECONOMICEVENT: RefUnwindSafe,
    INTENT: RefUnwindSafe

impl<COMMITMENT, ECONOMICEVENT, INTENT> Send for Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT> where
    COMMITMENT: Send,
    ECONOMICEVENT: Send,
    INTENT: Send

impl<COMMITMENT, ECONOMICEVENT, INTENT> Sync for Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT> where
    COMMITMENT: Sync,
    ECONOMICEVENT: Sync,
    INTENT: Sync

impl<COMMITMENT, ECONOMICEVENT, INTENT> Unpin for Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT> where
    COMMITMENT: Unpin,
    ECONOMICEVENT: Unpin,
    INTENT: Unpin

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