pub struct EconomicEventBuilder<ECONOMICEVENT, COMMITMENT, AGENT, PROCESS, AGREEMENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, CLAIM> { /* private fields */ }
Expand description

Builder for EconomicEvent.

Implementations§

source§

impl<ECONOMICEVENT, COMMITMENT, AGENT, PROCESS, AGREEMENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, CLAIM> EconomicEventBuilder<ECONOMICEVENT, COMMITMENT, AGENT, PROCESS, AGREEMENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, CLAIM>

source

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

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

source

pub fn at_location<VALUE: Into<Option<SpatialThing>>>( self, value: VALUE ) -> Self

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

source

pub fn corrects<VALUE: Into<Option<ECONOMICEVENT>>>(self, value: VALUE) -> Self

Used when an event was entered incorrectly and needs to be backed out or corrected. (The initial event cannot be changed.)

source

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

source

pub fn effort_quantity<VALUE: Into<Option<Measure>>>(self, value: VALUE) -> 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 fulfills<VALUE: Into<Option<COMMITMENT>>>(self, value: VALUE) -> Self

The commitment which is completely or partially fulfilled by an economic event.

source

pub fn has_beginning<VALUE: Into<Option<DateTime<Utc>>>>( self, value: VALUE ) -> Self

The planned or actual beginning of a flow or process.

source

pub fn has_end<VALUE: Into<Option<DateTime<Utc>>>>(self, value: VALUE) -> Self

The planned or actual end of a flow or process.

source

pub fn has_point_in_time<VALUE: Into<Option<DateTime<Utc>>>>( self, value: VALUE ) -> Self

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.

source

pub fn image<VALUE: Into<Option<Url>>>(self, value: VALUE) -> Self

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

source

pub fn in_scope_of<VALUE: Into<Vec<AGENT>>>(self, value: VALUE) -> Self

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

source

pub fn input_of<VALUE: Into<Option<PROCESS>>>(self, value: VALUE) -> Self

Relates an input flow to its process.

source

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

source

pub fn output_of<VALUE: Into<Option<PROCESS>>>(self, value: VALUE) -> Self

Relates an output flow to its process.

source

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

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

source

pub fn realization_of<VALUE: Into<Option<AGREEMENT>>>( self, value: VALUE ) -> Self

This non-reciprocal economic event occurs as part of this agreement.

source

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

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

source

pub fn reciprocal_realization_of<VALUE: Into<Option<AGREEMENT>>>( self, value: VALUE ) -> Self

This reciprocal economic event occurs as part of this agreement.

source

pub fn resource_classified_as<VALUE: Into<Vec<RESOURCECLASSIFIEDAS>>>( self, value: VALUE ) -> Self

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

source

pub fn resource_conforms_to<VALUE: Into<Option<RESOURCESPECIFICATION>>>( self, value: VALUE ) -> 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 resource_inventoried_as<VALUE: Into<Option<ECONOMICRESOURCE>>>( self, value: VALUE ) -> Self

Economic resource involved in the flow.

source

pub fn resource_quantity<VALUE: Into<Option<Measure>>>( self, value: VALUE ) -> Self

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

source

pub fn satisfies<VALUE: Into<Option<INTENT>>>(self, value: VALUE) -> Self

An intent satisfied fully or partially by an economic event or commitment.

source

pub fn settles<VALUE: Into<Option<CLAIM>>>(self, value: VALUE) -> Self

References a claim that is fully or partially settled by the economic event.

source

pub fn state<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self

The state of the desired economic resource, after coming out of a test or review process.

source

pub fn to_location<VALUE: Into<Option<SpatialThing>>>( self, value: VALUE ) -> Self

The new location of the receiver resource.

source

pub fn to_resource_inventoried_as<VALUE: Into<Option<ECONOMICRESOURCE>>>( self, value: VALUE ) -> Self

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.

source

pub fn triggered_by<VALUE: Into<Option<ECONOMICEVENT>>>( self, value: VALUE ) -> Self

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

source

pub fn build( self ) -> Result<EconomicEvent<ECONOMICEVENT, COMMITMENT, AGENT, PROCESS, AGREEMENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, CLAIM>, EconomicEventBuilderError>

Builds a new EconomicEvent.

§Errors

If a required field has not been initialized.

Trait Implementations§

source§

impl<ECONOMICEVENT, COMMITMENT, AGENT, PROCESS, AGREEMENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, CLAIM> Default for EconomicEventBuilder<ECONOMICEVENT, COMMITMENT, AGENT, PROCESS, AGREEMENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, CLAIM>

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<ECONOMICEVENT, COMMITMENT, AGENT, PROCESS, AGREEMENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, CLAIM> Freeze for EconomicEventBuilder<ECONOMICEVENT, COMMITMENT, AGENT, PROCESS, AGREEMENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, CLAIM>
where AGENT: Freeze, AGREEMENT: Freeze, CLAIM: Freeze, COMMITMENT: Freeze, ECONOMICEVENT: Freeze, ECONOMICRESOURCE: Freeze, INTENT: Freeze, PROCESS: Freeze, RESOURCESPECIFICATION: Freeze,

§

impl<ECONOMICEVENT, COMMITMENT, AGENT, PROCESS, AGREEMENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, CLAIM> RefUnwindSafe for EconomicEventBuilder<ECONOMICEVENT, COMMITMENT, AGENT, PROCESS, AGREEMENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, CLAIM>
where AGENT: RefUnwindSafe, AGREEMENT: RefUnwindSafe, CLAIM: RefUnwindSafe, COMMITMENT: RefUnwindSafe, ECONOMICEVENT: RefUnwindSafe, ECONOMICRESOURCE: RefUnwindSafe, INTENT: RefUnwindSafe, PROCESS: RefUnwindSafe, RESOURCECLASSIFIEDAS: RefUnwindSafe, RESOURCESPECIFICATION: RefUnwindSafe,

§

impl<ECONOMICEVENT, COMMITMENT, AGENT, PROCESS, AGREEMENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, CLAIM> Send for EconomicEventBuilder<ECONOMICEVENT, COMMITMENT, AGENT, PROCESS, AGREEMENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, CLAIM>
where AGENT: Send, AGREEMENT: Send, CLAIM: Send, COMMITMENT: Send, ECONOMICEVENT: Send, ECONOMICRESOURCE: Send, INTENT: Send, PROCESS: Send, RESOURCECLASSIFIEDAS: Send, RESOURCESPECIFICATION: Send,

§

impl<ECONOMICEVENT, COMMITMENT, AGENT, PROCESS, AGREEMENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, CLAIM> Sync for EconomicEventBuilder<ECONOMICEVENT, COMMITMENT, AGENT, PROCESS, AGREEMENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, CLAIM>
where AGENT: Sync, AGREEMENT: Sync, CLAIM: Sync, COMMITMENT: Sync, ECONOMICEVENT: Sync, ECONOMICRESOURCE: Sync, INTENT: Sync, PROCESS: Sync, RESOURCECLASSIFIEDAS: Sync, RESOURCESPECIFICATION: Sync,

§

impl<ECONOMICEVENT, COMMITMENT, AGENT, PROCESS, AGREEMENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, CLAIM> Unpin for EconomicEventBuilder<ECONOMICEVENT, COMMITMENT, AGENT, PROCESS, AGREEMENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, CLAIM>
where AGENT: Unpin, AGREEMENT: Unpin, CLAIM: Unpin, COMMITMENT: Unpin, ECONOMICEVENT: Unpin, ECONOMICRESOURCE: Unpin, INTENT: Unpin, PROCESS: Unpin, RESOURCECLASSIFIEDAS: Unpin, RESOURCESPECIFICATION: Unpin,

§

impl<ECONOMICEVENT, COMMITMENT, AGENT, PROCESS, AGREEMENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, CLAIM> UnwindSafe for EconomicEventBuilder<ECONOMICEVENT, COMMITMENT, AGENT, PROCESS, AGREEMENT, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, CLAIM>
where AGENT: UnwindSafe, AGREEMENT: UnwindSafe, CLAIM: UnwindSafe, COMMITMENT: UnwindSafe, ECONOMICEVENT: UnwindSafe, ECONOMICRESOURCE: UnwindSafe, INTENT: UnwindSafe, PROCESS: 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, 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.