[][src]Struct vf_rs::vf::Claim

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

A claim for a future economic event(s) in reciprocity for an economic event that already occurred. For example, a claim for payment for goods received.

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

Implementations

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

pub fn action(&self) -> &Action[src]

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

pub fn agreed_in(&self) -> &Option<Url>[src]

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

pub fn created(&self) -> &Option<DateTime<Utc>>[src]

pub fn due(&self) -> &Option<DateTime<Utc>>[src]

The time something is expected to be complete.

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 finished(&self) -> &Option<bool>[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(&self) -> &Vec<Url>[src]

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

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

pub fn provider(&self) -> &AGENT[src]

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

pub fn receiver(&self) -> &AGENT[src]

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

pub fn resource_classified_as(&self) -> &Vec<Url>[src]

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

pub fn resource_conforms_to(&self) -> &Option<RESOURCESPECIFICATION>[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(&self) -> &Option<Measure>[src]

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

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

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

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

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

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

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

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

pub fn set_created(&mut self, val: Option<DateTime<Utc>>) -> &mut Self[src]

pub fn set_due(&mut self, val: Option<DateTime<Utc>>) -> &mut Self[src]

The time something is expected to be complete.

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_finished(&mut self, val: Option<bool>) -> &mut 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 set_in_scope_of(&mut self, val: Vec<Url>) -> &mut Self[src]

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

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

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

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

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

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

pub fn set_resource_classified_as(&mut self, val: Vec<Url>) -> &mut Self[src]

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

pub fn set_resource_conforms_to(
    &mut self,
    val: Option<RESOURCESPECIFICATION>
) -> &mut 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 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_triggered_by(&mut self, val: ECONOMICEVENT) -> &mut Self[src]

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

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

pub fn action_mut(&mut self) -> &mut Action[src]

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

pub fn agreed_in_mut(&mut self) -> &mut Option<Url>[src]

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

pub fn created_mut(&mut self) -> &mut Option<DateTime<Utc>>[src]

pub fn due_mut(&mut self) -> &mut Option<DateTime<Utc>>[src]

The time something is expected to be complete.

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 finished_mut(&mut self) -> &mut Option<bool>[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_mut(&mut self) -> &mut Vec<Url>[src]

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

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

pub fn provider_mut(&mut self) -> &mut AGENT[src]

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

pub fn receiver_mut(&mut self) -> &mut AGENT[src]

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

pub fn resource_classified_as_mut(&mut self) -> &mut Vec<Url>[src]

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

pub fn resource_conforms_to_mut(&mut self) -> &mut Option<RESOURCESPECIFICATION>[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_mut(&mut self) -> &mut Option<Measure>[src]

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

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

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

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

pub fn builder() -> ClaimBuilder<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT>[src]

Create an empty builder object for Claim

pub fn into_builder(
    self
) -> ClaimBuilder<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT>
[src]

Turns Claim into ClaimBuilder

Trait Implementations

impl<AGENT: Clone, RESOURCESPECIFICATION: Clone, ECONOMICEVENT: Clone> Clone for Claim<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT>[src]

impl<AGENT: Debug, RESOURCESPECIFICATION: Debug, ECONOMICEVENT: Debug> Debug for Claim<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT>[src]

impl<'de, AGENT, RESOURCESPECIFICATION, ECONOMICEVENT> Deserialize<'de> for Claim<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT> where
    AGENT: Deserialize<'de>,
    RESOURCESPECIFICATION: Deserialize<'de>,
    ECONOMICEVENT: Deserialize<'de>, 
[src]

impl<AGENT: PartialEq, RESOURCESPECIFICATION: PartialEq, ECONOMICEVENT: PartialEq> PartialEq<Claim<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT>> for Claim<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT>[src]

impl<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT> Serialize for Claim<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT> where
    AGENT: Serialize,
    RESOURCESPECIFICATION: Serialize,
    ECONOMICEVENT: Serialize
[src]

impl<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT> StructuralPartialEq for Claim<AGENT, RESOURCESPECIFICATION, ECONOMICEVENT>[src]

Auto Trait Implementations

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

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

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

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

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