pub struct CommitmentBuilder<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> { /* private fields */ }
Expand description

Builder for Commitment.

Implementations§

source§

impl<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> CommitmentBuilder<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>

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 clause_of<VALUE: Into<Option<AGREEMENT>>>(self, value: VALUE) -> Self

This commitment is a primary part of the agreement.

source

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

source

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

The time something is expected to be complete.

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 finished<VALUE: Into<Option<bool>>>(self, value: VALUE) -> 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 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 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 independent_demand_of<VALUE: Into<Option<PLAN>>>( self, value: VALUE ) -> Self

Represents a desired deliverable expected from this plan.

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 planned_within<VALUE: Into<Option<PLAN>>>(self, value: VALUE) -> Self

The non-process commitment/intent or process with its inputs and outputs is part of the plan.

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 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_clause_of<VALUE: Into<Option<AGREEMENT>>>( self, value: VALUE ) -> Self

This commitment is a reciprocal part of the 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 stage<VALUE: Into<Option<PROCESSSPECIFICATION>>>( self, value: VALUE ) -> Self

References the ProcessSpecification of the last process the economic resource went through. Stage is used when the last process is important for finding proper resources, such as where the publishing process wants only documents that have gone through the editing process.

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 build( self ) -> Result<Commitment<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>, CommitmentBuilderError>

Builds a new Commitment.

§Errors

If a required field has not been initialized.

Trait Implementations§

source§

impl<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> Default for CommitmentBuilder<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>

source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> Freeze for CommitmentBuilder<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>
where AGENT: Freeze, AGREEMENT: Freeze, ECONOMICRESOURCE: Freeze, INTENT: Freeze, PLAN: Freeze, PROCESS: Freeze, PROCESSSPECIFICATION: Freeze, RESOURCESPECIFICATION: Freeze,

§

impl<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> RefUnwindSafe for CommitmentBuilder<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>
where AGENT: RefUnwindSafe, AGREEMENT: RefUnwindSafe, ECONOMICRESOURCE: RefUnwindSafe, INTENT: RefUnwindSafe, PLAN: RefUnwindSafe, PROCESS: RefUnwindSafe, PROCESSSPECIFICATION: RefUnwindSafe, RESOURCECLASSIFIEDAS: RefUnwindSafe, RESOURCESPECIFICATION: RefUnwindSafe,

§

impl<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> Send for CommitmentBuilder<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>
where AGENT: Send, AGREEMENT: Send, ECONOMICRESOURCE: Send, INTENT: Send, PLAN: Send, PROCESS: Send, PROCESSSPECIFICATION: Send, RESOURCECLASSIFIEDAS: Send, RESOURCESPECIFICATION: Send,

§

impl<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> Sync for CommitmentBuilder<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>
where AGENT: Sync, AGREEMENT: Sync, ECONOMICRESOURCE: Sync, INTENT: Sync, PLAN: Sync, PROCESS: Sync, PROCESSSPECIFICATION: Sync, RESOURCECLASSIFIEDAS: Sync, RESOURCESPECIFICATION: Sync,

§

impl<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> Unpin for CommitmentBuilder<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>
where AGENT: Unpin, AGREEMENT: Unpin, ECONOMICRESOURCE: Unpin, INTENT: Unpin, PLAN: Unpin, PROCESS: Unpin, PROCESSSPECIFICATION: Unpin, RESOURCECLASSIFIEDAS: Unpin, RESOURCESPECIFICATION: Unpin,

§

impl<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION> UnwindSafe for CommitmentBuilder<AGREEMENT, AGENT, PLAN, PROCESS, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE, INTENT, PROCESSSPECIFICATION>
where AGENT: UnwindSafe, AGREEMENT: UnwindSafe, ECONOMICRESOURCE: UnwindSafe, INTENT: UnwindSafe, PLAN: UnwindSafe, PROCESS: UnwindSafe, PROCESSSPECIFICATION: 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.