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

pub struct ClaimBuilder<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT> { /* fields omitted */ }

Builder for Claim.

Implementations

impl<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT> ClaimBuilder<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT>[src]

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

Defines the kind of flow, such as consume, produce, work, transfer, etc.

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

Reference to an agreement between agents which specifies the rules, terms, policies, calculations, etc. which govern this flow.

pub fn created<VALUE: Into<DateTime<Utc>>>(self, value: VALUE) -> Self[src]

pub fn due<VALUE: Into<DateTime<Utc>>>(self, value: VALUE) -> Self[src]

The time something is expected to be complete.

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 finished<VALUE: Into<bool>>(self, value: VALUE) -> Self[src]

The commitment or intent or process is complete or not. This is irrespective of if the original goal has been met, and indicates that no more will be done.

pub fn in_scope_of<VALUE: Into<Vec<Url>>>(self, value: VALUE) -> Self[src]

Grouping around something to create a boundary or context, used for documenting, accounting, planning.

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

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

The economic agent from whom the intended, committed, or actual economic event is initiated.

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

The economic agent whom the intended, committed, or actual economic event is for.

pub fn resource_classified_as<VALUE: Into<Vec<Url>>>(self, value: VALUE) -> Self[src]

References a concept in a common taxonomy or other classification scheme for purposes of categorization or grouping.

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

The primary resource specification or definition of an existing or potential economic resource. A resource will have only one, as this specifies exactly what the resource is.

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 triggered_by<VALUE: Into<ECONOMICEVENT>>(self, value: VALUE) -> Self[src]

References an economic event that implied the claim or event, often based on a prior agreement.

pub fn build(
    self
) -> Result<Claim<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT>, String>
[src]

Builds a new Claim.

Errors

If a required field has not been initialized.

Trait Implementations

impl<AGENT: Default, RESOURCESPECIFICATION: Default, ECONOMICEVENT: Default> Default for ClaimBuilder<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT>[src]

Auto Trait Implementations

impl<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT> RefUnwindSafe for ClaimBuilder<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT> where
    AGENT: RefUnwindSafe,
    ECONOMICEVENT: RefUnwindSafe,
    RESOURCESPECIFICATION: RefUnwindSafe

impl<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT> Send for ClaimBuilder<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT> where
    AGENT: Send,
    ECONOMICEVENT: Send,
    RESOURCESPECIFICATION: Send

impl<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT> Sync for ClaimBuilder<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT> where
    AGENT: Sync,
    ECONOMICEVENT: Sync,
    RESOURCESPECIFICATION: Sync

impl<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT> Unpin for ClaimBuilder<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT> where
    AGENT: Unpin,
    ECONOMICEVENT: Unpin,
    RESOURCESPECIFICATION: Unpin

impl<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT> UnwindSafe for ClaimBuilder<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT> where
    AGENT: UnwindSafe,
    ECONOMICEVENT: UnwindSafe,
    RESOURCESPECIFICATION: 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.