[][src]Struct vf_rs::vf::builders::SatisfactionBuilder

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

Builder for Satisfaction.

Implementations

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

pub fn effort_quantity<VALUE: Into<Measure>>(self, value: VALUE) -> 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 note<VALUE: Into<String>>(self, value: VALUE) -> Self[src]

pub fn resource_quantity<VALUE: Into<Measure>>(self, value: VALUE) -> Self[src]

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

pub fn satisfied_by<VALUE: Into<CommitmentEconomicEventUnion<COMMITMENT, ECONOMICEVENT>>>(
    self,
    value: VALUE
) -> Self
[src]

A commitment or economic event fully or partially satisfying an intent

pub fn satisfies<VALUE: Into<INTENT>>(self, value: VALUE) -> Self[src]

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

pub fn build(
    self
) -> Result<Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT>, String>
[src]

Builds a new Satisfaction.

Errors

If a required field has not been initialized.

Trait Implementations

impl<COMMITMENT: Default, ECONOMICEVENT: Default, INTENT: Default> Default for SatisfactionBuilder<COMMITMENT, ECONOMICEVENT, INTENT>[src]

Auto Trait Implementations

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

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

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

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

impl<COMMITMENT, ECONOMICEVENT, INTENT> UnwindSafe for SatisfactionBuilder<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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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.