[][src]Struct vf_rs::economic_event::EconomicEvent

pub struct EconomicEvent {
    pub action: String,
    pub agreed_in: Option<Url>,
    pub at_location: Option<Box<SpatialThing>>,
    pub effort_quantity: Option<Box<Measure>>,
    pub has_beginning: Option<DateTime<Utc>>,
    pub has_end: Option<DateTime<Utc>>,
    pub has_point_in_time: Option<DateTime<Utc>>,
    pub in_scope_of: Option<Box<Agent>>,
    pub input_of: Option<Box<Process>>,
    pub note: Option<String>,
    pub output_of: Option<Box<Process>>,
    pub provider: Option<Box<Agent>>,
    pub realization_of: Option<Box<Agreement>>,
    pub receiver: Option<Box<Agent>>,
    pub resource_classified_as: Vec<Url>,
    pub resource_conforms_to: Option<Box<ResourceSpecification>>,
    pub resource_inventoried_as: Option<Box<EconomicResource>>,
    pub resource_quantity: Option<Box<Measure>>,
    pub to_resource_inventoried_as: Option<Box<EconomicResource>>,
    pub triggered_by: Option<Box<EconomicEvent>>,
}

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

ID: https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/EconomicEvent.json

Fields

action: String

Relates an economic event to a verb, such as consume, produce, work, improve, etc.

agreed_in: Option<Url>

Reference to an agreement between agents which specifies the rules or policies or calculations which govern this economic event.

at_location: Option<Box<SpatialThing>>

The place where an economic event occurs. Usually mappable.

effort_quantity: Option<Box<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.

has_beginning: Option<DateTime<Utc>>

The beginning of the economic event.

has_end: Option<DateTime<Utc>>

The end of the economic event.

has_point_in_time: Option<DateTime<Utc>>

The date/time at which the economic event occurred. Can be used instead of beginning and end.

in_scope_of: Option<Box<Agent>>

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

input_of: Option<Box<Process>>

Defines the process to which this event is an input.

note: Option<String>

A textual comment or description.

output_of: Option<Box<Process>>

Defines the process for which this event is an output.

provider: Option<Box<Agent>>

The economic agent from whom the economic event is initiated.

realization_of: Option<Box<Agreement>>

This economic event occurs as part of this agreement.

receiver: Option<Box<Agent>>

The economic agent whom the economic event is for.

resource_classified_as: Vec<Url>

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

resource_conforms_to: Option<Box<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.

resource_inventoried_as: Option<Box<EconomicResource>>

Economic resource involved in the economic event.

resource_quantity: Option<Box<Measure>>

The amount and unit of the economic resource counted or inventoried. This is the quantity that could be used to increment or decrement a resource, depending on the type of resource and resource effect of action.

to_resource_inventoried_as: Option<Box<EconomicResource>>

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.

triggered_by: Option<Box<EconomicEvent>>

References another economic event that implied this economic event, often based on a prior agreement.

Methods

impl EconomicEvent[src]

pub fn into_builder(self) -> EconomicEventBuilder[src]

Turns EconomicEvent into EconomicEventBuilder

Trait Implementations

impl Clone for EconomicEvent[src]

impl Debug for EconomicEvent[src]

impl<'de> Deserialize<'de> for EconomicEvent[src]

impl PartialEq<EconomicEvent> for EconomicEvent[src]

impl Serialize for EconomicEvent[src]

impl StructuralPartialEq for EconomicEvent[src]

Auto Trait Implementations

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: 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.