pub struct ProcessBuilder<PROCESSSPECIFICATION, CLASSIFIEDAS, COMMITMENT, ECONOMICEVENT, INTENT, AGENT, SCENARIO, PLAN> { /* private fields */ }
Expand description

Builder for Process.

Implementations§

source§

impl<PROCESSSPECIFICATION, CLASSIFIEDAS, COMMITMENT, ECONOMICEVENT, INTENT, AGENT, SCENARIO, PLAN> ProcessBuilder<PROCESSSPECIFICATION, CLASSIFIEDAS, COMMITMENT, ECONOMICEVENT, INTENT, AGENT, SCENARIO, PLAN>

source

pub fn based_on<VALUE: Into<Option<PROCESSSPECIFICATION>>>( self, value: VALUE ) -> Self

The definition or standard specification for a process.

source

pub fn classified_as<VALUE: Into<Vec<CLASSIFIEDAS>>>(self, value: VALUE) -> Self

References one or more concepts in a common taxonomy or other classification scheme for purposes of categorization or grouping.

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_input<VALUE: Into<Option<CommitmentEconomicEventIntentUnion<COMMITMENT, ECONOMICEVENT, INTENT>>>>( self, value: VALUE ) -> Self

All the input flows of a process.

source

pub fn has_output<VALUE: Into<Option<CommitmentEconomicEventIntentUnion<COMMITMENT, ECONOMICEVENT, INTENT>>>>( self, value: VALUE ) -> Self

All the output flows of a process.

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 name<VALUE: Into<String>>(self, value: VALUE) -> Self

An informal or formal textual identifier for an object. Does not imply uniqueness.

source

pub fn nested_in<VALUE: Into<Option<SCENARIO>>>(self, value: VALUE) -> Self

The process with its inputs and outputs is part of the scenario.

source

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

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 build( self ) -> Result<Process<PROCESSSPECIFICATION, CLASSIFIEDAS, COMMITMENT, ECONOMICEVENT, INTENT, AGENT, SCENARIO, PLAN>, ProcessBuilderError>

Builds a new Process.

§Errors

If a required field has not been initialized.

Trait Implementations§

source§

impl<PROCESSSPECIFICATION, CLASSIFIEDAS, COMMITMENT, ECONOMICEVENT, INTENT, AGENT, SCENARIO, PLAN> Default for ProcessBuilder<PROCESSSPECIFICATION, CLASSIFIEDAS, COMMITMENT, ECONOMICEVENT, INTENT, AGENT, SCENARIO, PLAN>

source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl<PROCESSSPECIFICATION, CLASSIFIEDAS, COMMITMENT, ECONOMICEVENT, INTENT, AGENT, SCENARIO, PLAN> Freeze for ProcessBuilder<PROCESSSPECIFICATION, CLASSIFIEDAS, COMMITMENT, ECONOMICEVENT, INTENT, AGENT, SCENARIO, PLAN>
where COMMITMENT: Freeze, ECONOMICEVENT: Freeze, INTENT: Freeze, PLAN: Freeze, PROCESSSPECIFICATION: Freeze, SCENARIO: Freeze,

§

impl<PROCESSSPECIFICATION, CLASSIFIEDAS, COMMITMENT, ECONOMICEVENT, INTENT, AGENT, SCENARIO, PLAN> RefUnwindSafe for ProcessBuilder<PROCESSSPECIFICATION, CLASSIFIEDAS, COMMITMENT, ECONOMICEVENT, INTENT, AGENT, SCENARIO, PLAN>
where AGENT: RefUnwindSafe, CLASSIFIEDAS: RefUnwindSafe, COMMITMENT: RefUnwindSafe, ECONOMICEVENT: RefUnwindSafe, INTENT: RefUnwindSafe, PLAN: RefUnwindSafe, PROCESSSPECIFICATION: RefUnwindSafe, SCENARIO: RefUnwindSafe,

§

impl<PROCESSSPECIFICATION, CLASSIFIEDAS, COMMITMENT, ECONOMICEVENT, INTENT, AGENT, SCENARIO, PLAN> Send for ProcessBuilder<PROCESSSPECIFICATION, CLASSIFIEDAS, COMMITMENT, ECONOMICEVENT, INTENT, AGENT, SCENARIO, PLAN>
where AGENT: Send, CLASSIFIEDAS: Send, COMMITMENT: Send, ECONOMICEVENT: Send, INTENT: Send, PLAN: Send, PROCESSSPECIFICATION: Send, SCENARIO: Send,

§

impl<PROCESSSPECIFICATION, CLASSIFIEDAS, COMMITMENT, ECONOMICEVENT, INTENT, AGENT, SCENARIO, PLAN> Sync for ProcessBuilder<PROCESSSPECIFICATION, CLASSIFIEDAS, COMMITMENT, ECONOMICEVENT, INTENT, AGENT, SCENARIO, PLAN>
where AGENT: Sync, CLASSIFIEDAS: Sync, COMMITMENT: Sync, ECONOMICEVENT: Sync, INTENT: Sync, PLAN: Sync, PROCESSSPECIFICATION: Sync, SCENARIO: Sync,

§

impl<PROCESSSPECIFICATION, CLASSIFIEDAS, COMMITMENT, ECONOMICEVENT, INTENT, AGENT, SCENARIO, PLAN> Unpin for ProcessBuilder<PROCESSSPECIFICATION, CLASSIFIEDAS, COMMITMENT, ECONOMICEVENT, INTENT, AGENT, SCENARIO, PLAN>
where AGENT: Unpin, CLASSIFIEDAS: Unpin, COMMITMENT: Unpin, ECONOMICEVENT: Unpin, INTENT: Unpin, PLAN: Unpin, PROCESSSPECIFICATION: Unpin, SCENARIO: Unpin,

§

impl<PROCESSSPECIFICATION, CLASSIFIEDAS, COMMITMENT, ECONOMICEVENT, INTENT, AGENT, SCENARIO, PLAN> UnwindSafe for ProcessBuilder<PROCESSSPECIFICATION, CLASSIFIEDAS, COMMITMENT, ECONOMICEVENT, INTENT, AGENT, SCENARIO, PLAN>
where AGENT: UnwindSafe, CLASSIFIEDAS: UnwindSafe, COMMITMENT: UnwindSafe, ECONOMICEVENT: UnwindSafe, INTENT: UnwindSafe, PLAN: UnwindSafe, PROCESSSPECIFICATION: UnwindSafe, SCENARIO: 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.