pub struct IntentBuilder<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE> { /* private fields */ }
Expand description

Builder for Intent.

Implementations§

source§

impl<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE> IntentBuilder<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>

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

The quantity of the offered resource currently available.

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

A comma separated list of uri addresses to images relevant to the resource.

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

The minimum required order quantity of the offered resource.

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

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

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 build( self ) -> Result<Intent<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>, IntentBuilderError>

Builds a new Intent.

§Errors

If a required field has not been initialized.

Trait Implementations§

source§

impl<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE> Default for IntentBuilder<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>

source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE> Freeze for IntentBuilder<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>
where AGENT: Freeze, ECONOMICRESOURCE: Freeze, PLAN: Freeze, PROCESS: Freeze, RESOURCESPECIFICATION: Freeze,

§

impl<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE> RefUnwindSafe for IntentBuilder<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>
where AGENT: RefUnwindSafe, ECONOMICRESOURCE: RefUnwindSafe, PLAN: RefUnwindSafe, PROCESS: RefUnwindSafe, RESOURCECLASSIFIEDAS: RefUnwindSafe, RESOURCESPECIFICATION: RefUnwindSafe,

§

impl<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE> Send for IntentBuilder<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>
where AGENT: Send, ECONOMICRESOURCE: Send, PLAN: Send, PROCESS: Send, RESOURCECLASSIFIEDAS: Send, RESOURCESPECIFICATION: Send,

§

impl<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE> Sync for IntentBuilder<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>
where AGENT: Sync, ECONOMICRESOURCE: Sync, PLAN: Sync, PROCESS: Sync, RESOURCECLASSIFIEDAS: Sync, RESOURCESPECIFICATION: Sync,

§

impl<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE> Unpin for IntentBuilder<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>
where AGENT: Unpin, ECONOMICRESOURCE: Unpin, PLAN: Unpin, PROCESS: Unpin, RESOURCECLASSIFIEDAS: Unpin, RESOURCESPECIFICATION: Unpin,

§

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