Struct vf_rs::vf::Claim

source ·
pub struct Claim<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT> { /* private fields */ }
Expand description

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/ont/vf#Claim

Implementations§

source§

impl<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT> Claim<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT>

source

pub fn action_mut(&mut self) -> &mut Action

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

source

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

source

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

The time something is expected to be complete.

source

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

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.

source

pub fn finished_mut(&mut self) -> &mut Option<bool>

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.

source

pub fn in_scope_of_mut(&mut self) -> &mut Vec<AGENT>

In the context of an agent, a grouping generally used for accounting, reporting.

source

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

source

pub fn provider_mut(&mut self) -> &mut AGENT

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

source

pub fn receiver_mut(&mut self) -> &mut AGENT

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

source

pub fn resource_classified_as_mut(&mut self) -> &mut Vec<RESOURCECLASSIFIEDAS>

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

source

pub fn resource_conforms_to_mut(&mut self) -> &mut Option<RESOURCESPECIFICATION>

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.

source

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

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

source

pub fn triggered_by_mut(&mut self) -> &mut ECONOMICEVENT

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

source§

impl<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT> Claim<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT>

source

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

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

source

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

source

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

The time something is expected to be complete.

source

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

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.

source

pub fn set_finished(&mut self, val: Option<bool>) -> &mut Self

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.

source

pub fn set_in_scope_of(&mut self, val: Vec<AGENT>) -> &mut Self

In the context of an agent, a grouping generally used for accounting, reporting.

source

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

source

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

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

source

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

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

source

pub fn set_resource_classified_as( &mut self, val: Vec<RESOURCECLASSIFIEDAS> ) -> &mut Self

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

source

pub fn set_resource_conforms_to( &mut self, val: Option<RESOURCESPECIFICATION> ) -> &mut Self

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.

source

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

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

source

pub fn set_triggered_by(&mut self, val: ECONOMICEVENT) -> &mut Self

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

source§

impl<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT> Claim<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT>

source

pub fn action(&self) -> &Action

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

source

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

source

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

The time something is expected to be complete.

source

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

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.

source

pub fn finished(&self) -> &Option<bool>

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.

source

pub fn in_scope_of(&self) -> &Vec<AGENT>

In the context of an agent, a grouping generally used for accounting, reporting.

source

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

source

pub fn provider(&self) -> &AGENT

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

source

pub fn receiver(&self) -> &AGENT

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

source

pub fn resource_classified_as(&self) -> &Vec<RESOURCECLASSIFIEDAS>

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

source

pub fn resource_conforms_to(&self) -> &Option<RESOURCESPECIFICATION>

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.

source

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

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

source

pub fn triggered_by(&self) -> &ECONOMICEVENT

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

source§

impl<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT> Claim<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT>

source

pub fn builder( ) -> ClaimBuilder<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT>

Create an empty builder object for Claim

source

pub fn into_builder( self ) -> ClaimBuilder<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT>

Turns Claim into ClaimBuilder

Trait Implementations§

source§

impl<AGENT: Clone, RESOURCECLASSIFIEDAS: Clone, RESOURCESPECIFICATION: Clone, ECONOMICEVENT: Clone> Clone for Claim<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT>

source§

fn clone( &self ) -> Claim<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<AGENT: Debug, RESOURCECLASSIFIEDAS: Debug, RESOURCESPECIFICATION: Debug, ECONOMICEVENT: Debug> Debug for Claim<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de, AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT> Deserialize<'de> for Claim<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT>
where AGENT: Deserialize<'de>, RESOURCECLASSIFIEDAS: Deserialize<'de>, RESOURCESPECIFICATION: Deserialize<'de>, ECONOMICEVENT: Deserialize<'de>,

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<AGENT: PartialEq, RESOURCECLASSIFIEDAS: PartialEq, RESOURCESPECIFICATION: PartialEq, ECONOMICEVENT: PartialEq> PartialEq for Claim<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT>

source§

fn eq( &self, other: &Claim<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT> ) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT> Serialize for Claim<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT>
where AGENT: Serialize, RESOURCECLASSIFIEDAS: Serialize, RESOURCESPECIFICATION: Serialize, ECONOMICEVENT: Serialize,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT> StructuralPartialEq for Claim<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT>

Auto Trait Implementations§

§

impl<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT> Freeze for Claim<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT>
where AGENT: Freeze, ECONOMICEVENT: Freeze, RESOURCESPECIFICATION: Freeze,

§

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

§

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

§

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

§

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

§

impl<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT> UnwindSafe for Claim<AGENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICEVENT>
where AGENT: UnwindSafe, ECONOMICEVENT: UnwindSafe, RESOURCECLASSIFIEDAS: UnwindSafe, RESOURCESPECIFICATION: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,