[][src]Struct vf_rs::vf::EconomicEvent

pub struct EconomicEvent<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT> { /* fields omitted */ }

An observed economic flow, as opposed to a flow planned to happen in the future. This could reflect a change in the quantity of an economic resource. It is also defined by its behavior in relation to the economic resource (see vf:action)

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

Implementations

impl<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT> EconomicEvent<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, 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 at_location(&self) -> &Option<SpatialThing>[src]

The place where an intent, commitment, or economic event occurs. Usually mappable.

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 has_beginning(&self) -> &Option<DateTime<Utc>>[src]

The planned or actual beginning of a flow or process.

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

The planned or actual end of a flow or process.

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

The planned or actual time of a flow; can be used instead of hasBeginning and hasEnd, if so, hasBeginning and hasEnd should be able to be returned with this value.

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

The uri to an image relevant to the entity, such as a logo, avatar, photo, diagram, etc.

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 input_of(&self) -> &Option<PROCESS>[src]

Relates an input flow to it's process.

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

pub fn output_of(&self) -> &Option<PROCESS>[src]

Relates an output flow to it's process.

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

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

pub fn realization_of(&self) -> &Option<AGREEMENT>[src]

This economic event occurs as part of this agreement.

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_inventoried_as(&self) -> &Option<ECONOMICRESOURCE>[src]

Economic resource involved in the flow.

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

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

pub fn to_resource_inventoried_as(&self) -> &Option<ECONOMICRESOURCE>[src]

Additional economic resource on the economic event when needed by the receiver. Used when a transfer or move, or sometimes other actions, requires explicitly identifying an economic resource on the receiving side.

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

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

impl<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT> EconomicEvent<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, 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_at_location(&mut self, val: Option<SpatialThing>) -> &mut Self[src]

The place where an intent, commitment, or economic event occurs. Usually mappable.

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_has_beginning(&mut self, val: Option<DateTime<Utc>>) -> &mut Self[src]

The planned or actual beginning of a flow or process.

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

The planned or actual end of a flow or process.

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

The planned or actual time of a flow; can be used instead of hasBeginning and hasEnd, if so, hasBeginning and hasEnd should be able to be returned with this value.

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

The uri to an image relevant to the entity, such as a logo, avatar, photo, diagram, etc.

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_input_of(&mut self, val: Option<PROCESS>) -> &mut Self[src]

Relates an input flow to it's process.

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

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

Relates an output flow to it's process.

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_realization_of(&mut self, val: Option<AGREEMENT>) -> &mut Self[src]

This economic event occurs as part of this agreement.

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_inventoried_as(
    &mut self,
    val: Option<ECONOMICRESOURCE>
) -> &mut Self
[src]

Economic resource involved in the flow.

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_to_resource_inventoried_as(
    &mut self,
    val: Option<ECONOMICRESOURCE>
) -> &mut Self
[src]

Additional economic resource on the economic event when needed by the receiver. Used when a transfer or move, or sometimes other actions, requires explicitly identifying an economic resource on the receiving side.

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

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

impl<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT> EconomicEvent<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, 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 at_location_mut(&mut self) -> &mut Option<SpatialThing>[src]

The place where an intent, commitment, or economic event occurs. Usually mappable.

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 has_beginning_mut(&mut self) -> &mut Option<DateTime<Utc>>[src]

The planned or actual beginning of a flow or process.

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

The planned or actual end of a flow or process.

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

The planned or actual time of a flow; can be used instead of hasBeginning and hasEnd, if so, hasBeginning and hasEnd should be able to be returned with this value.

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

The uri to an image relevant to the entity, such as a logo, avatar, photo, diagram, etc.

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 input_of_mut(&mut self) -> &mut Option<PROCESS>[src]

Relates an input flow to it's process.

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

pub fn output_of_mut(&mut self) -> &mut Option<PROCESS>[src]

Relates an output flow to it's process.

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 realization_of_mut(&mut self) -> &mut Option<AGREEMENT>[src]

This economic event occurs as part of this agreement.

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_inventoried_as_mut(&mut self) -> &mut Option<ECONOMICRESOURCE>[src]

Economic resource involved in the flow.

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

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

pub fn to_resource_inventoried_as_mut(
    &mut self
) -> &mut Option<ECONOMICRESOURCE>
[src]

Additional economic resource on the economic event when needed by the receiver. Used when a transfer or move, or sometimes other actions, requires explicitly identifying an economic resource on the receiving side.

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

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

impl<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT> EconomicEvent<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT>[src]

pub fn builder(
) -> EconomicEventBuilder<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT>
[src]

Create an empty builder object for EconomicEvent

pub fn into_builder(
    self
) -> EconomicEventBuilder<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT>
[src]

Turns EconomicEvent into EconomicEventBuilder

Trait Implementations

impl<PROCESS: Clone, AGENT: Clone, AGREEMENT: Clone, RESOURCESPECIFICATION: Clone, ECONOMICRESOURCE: Clone, ECONOMICEVENT: Clone> Clone for EconomicEvent<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT>[src]

impl<PROCESS: Debug, AGENT: Debug, AGREEMENT: Debug, RESOURCESPECIFICATION: Debug, ECONOMICRESOURCE: Debug, ECONOMICEVENT: Debug> Debug for EconomicEvent<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT>[src]

impl<'de, PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT> Deserialize<'de> for EconomicEvent<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT> where
    PROCESS: Deserialize<'de>,
    AGENT: Deserialize<'de>,
    AGREEMENT: Deserialize<'de>,
    RESOURCESPECIFICATION: Deserialize<'de>,
    ECONOMICRESOURCE: Deserialize<'de>,
    ECONOMICEVENT: Deserialize<'de>, 
[src]

impl<PROCESS: PartialEq, AGENT: PartialEq, AGREEMENT: PartialEq, RESOURCESPECIFICATION: PartialEq, ECONOMICRESOURCE: PartialEq, ECONOMICEVENT: PartialEq> PartialEq<EconomicEvent<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT>> for EconomicEvent<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT>[src]

impl<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT> Serialize for EconomicEvent<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT> where
    PROCESS: Serialize,
    AGENT: Serialize,
    AGREEMENT: Serialize,
    RESOURCESPECIFICATION: Serialize,
    ECONOMICRESOURCE: Serialize,
    ECONOMICEVENT: Serialize
[src]

impl<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT> StructuralPartialEq for EconomicEvent<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT>[src]

Auto Trait Implementations

impl<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT> RefUnwindSafe for EconomicEvent<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT> where
    AGENT: RefUnwindSafe,
    AGREEMENT: RefUnwindSafe,
    ECONOMICEVENT: RefUnwindSafe,
    ECONOMICRESOURCE: RefUnwindSafe,
    PROCESS: RefUnwindSafe,
    RESOURCESPECIFICATION: RefUnwindSafe

impl<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT> Send for EconomicEvent<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT> where
    AGENT: Send,
    AGREEMENT: Send,
    ECONOMICEVENT: Send,
    ECONOMICRESOURCE: Send,
    PROCESS: Send,
    RESOURCESPECIFICATION: Send

impl<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT> Sync for EconomicEvent<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT> where
    AGENT: Sync,
    AGREEMENT: Sync,
    ECONOMICEVENT: Sync,
    ECONOMICRESOURCE: Sync,
    PROCESS: Sync,
    RESOURCESPECIFICATION: Sync

impl<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT> Unpin for EconomicEvent<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT> where
    AGENT: Unpin,
    AGREEMENT: Unpin,
    ECONOMICEVENT: Unpin,
    ECONOMICRESOURCE: Unpin,
    PROCESS: Unpin,
    RESOURCESPECIFICATION: Unpin

impl<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT> UnwindSafe for EconomicEvent<PROCESS, AGENT, AGREEMENT, RESOURCESPECIFICATION, ECONOMICRESOURCE, ECONOMICEVENT> where
    AGENT: UnwindSafe,
    AGREEMENT: UnwindSafe,
    ECONOMICEVENT: UnwindSafe,
    ECONOMICRESOURCE: UnwindSafe,
    PROCESS: 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.