Struct vf_rs::vf::Plan

source ·
pub struct Plan<COMMITMENT, INTENT, PROCESS, SCENARIO> { /* private fields */ }
Expand description

A logical collection of processes that constitute a body of scheduled work with defined deliverable(s).

ID: https://w3id.org/valueflows/ont/vf#Plan

Implementations§

source§

impl<COMMITMENT, INTENT, PROCESS, SCENARIO> Plan<COMMITMENT, INTENT, PROCESS, SCENARIO>

source

pub fn created_mut(&mut self) -> &mut Option<DateTime<Utc>>

source

pub fn due_mut(&mut self) -> &mut Option<DateTime<Utc>>

The time something is expected to be complete.

source

pub fn has_independent_demand_mut(&mut self) -> &mut Option<COMMITMENT>

The independent commitments for which this plan was created.

source

pub fn name_mut(&mut self) -> &mut Option<String>

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

source

pub fn note_mut(&mut self) -> &mut Option<String>

source

pub fn plan_includes_mut( &mut self ) -> &mut Option<CommitmentIntentProcessUnion<COMMITMENT, INTENT, PROCESS>>

The processes and and non-process commitments/intents that constitute the plan.

source

pub fn refinement_of_mut(&mut self) -> &mut Option<SCENARIO>

This scenario or plan refines another scenario, often as time moves closer or for more detail.

source§

impl<COMMITMENT, INTENT, PROCESS, SCENARIO> Plan<COMMITMENT, INTENT, PROCESS, SCENARIO>

source

pub fn set_created(&mut self, val: Option<DateTime<Utc>>) -> &mut Self

source

pub fn set_due(&mut self, val: Option<DateTime<Utc>>) -> &mut Self

The time something is expected to be complete.

source

pub fn set_has_independent_demand( &mut self, val: Option<COMMITMENT> ) -> &mut Self

The independent commitments for which this plan was created.

source

pub fn set_name(&mut self, val: Option<String>) -> &mut Self

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

source

pub fn set_note(&mut self, val: Option<String>) -> &mut Self

source

pub fn set_plan_includes( &mut self, val: Option<CommitmentIntentProcessUnion<COMMITMENT, INTENT, PROCESS>> ) -> &mut Self

The processes and and non-process commitments/intents that constitute the plan.

source

pub fn set_refinement_of(&mut self, val: Option<SCENARIO>) -> &mut Self

This scenario or plan refines another scenario, often as time moves closer or for more detail.

source§

impl<COMMITMENT, INTENT, PROCESS, SCENARIO> Plan<COMMITMENT, INTENT, PROCESS, SCENARIO>

source

pub fn created(&self) -> &Option<DateTime<Utc>>

source

pub fn due(&self) -> &Option<DateTime<Utc>>

The time something is expected to be complete.

source

pub fn has_independent_demand(&self) -> &Option<COMMITMENT>

The independent commitments for which this plan was created.

source

pub fn name(&self) -> &Option<String>

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

source

pub fn note(&self) -> &Option<String>

source

pub fn plan_includes( &self ) -> &Option<CommitmentIntentProcessUnion<COMMITMENT, INTENT, PROCESS>>

The processes and and non-process commitments/intents that constitute the plan.

source

pub fn refinement_of(&self) -> &Option<SCENARIO>

This scenario or plan refines another scenario, often as time moves closer or for more detail.

source§

impl<COMMITMENT, INTENT, PROCESS, SCENARIO> Plan<COMMITMENT, INTENT, PROCESS, SCENARIO>

source

pub fn builder() -> PlanBuilder<COMMITMENT, INTENT, PROCESS, SCENARIO>

Create an empty builder object for Plan

source

pub fn into_builder(self) -> PlanBuilder<COMMITMENT, INTENT, PROCESS, SCENARIO>

Turns Plan into PlanBuilder

Trait Implementations§

source§

impl<COMMITMENT: Clone, INTENT: Clone, PROCESS: Clone, SCENARIO: Clone> Clone for Plan<COMMITMENT, INTENT, PROCESS, SCENARIO>

source§

fn clone(&self) -> Plan<COMMITMENT, INTENT, PROCESS, SCENARIO>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<COMMITMENT: Debug, INTENT: Debug, PROCESS: Debug, SCENARIO: Debug> Debug for Plan<COMMITMENT, INTENT, PROCESS, SCENARIO>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de, COMMITMENT, INTENT, PROCESS, SCENARIO> Deserialize<'de> for Plan<COMMITMENT, INTENT, PROCESS, SCENARIO>
where COMMITMENT: Deserialize<'de>, INTENT: Deserialize<'de>, PROCESS: Deserialize<'de>, SCENARIO: Deserialize<'de>,

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<COMMITMENT: PartialEq, INTENT: PartialEq, PROCESS: PartialEq, SCENARIO: PartialEq> PartialEq for Plan<COMMITMENT, INTENT, PROCESS, SCENARIO>

source§

fn eq(&self, other: &Plan<COMMITMENT, INTENT, PROCESS, SCENARIO>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<COMMITMENT, INTENT, PROCESS, SCENARIO> Serialize for Plan<COMMITMENT, INTENT, PROCESS, SCENARIO>
where COMMITMENT: Serialize, INTENT: Serialize, PROCESS: Serialize, SCENARIO: Serialize,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<COMMITMENT, INTENT, PROCESS, SCENARIO> StructuralPartialEq for Plan<COMMITMENT, INTENT, PROCESS, SCENARIO>

Auto Trait Implementations§

§

impl<COMMITMENT, INTENT, PROCESS, SCENARIO> Freeze for Plan<COMMITMENT, INTENT, PROCESS, SCENARIO>
where COMMITMENT: Freeze, INTENT: Freeze, PROCESS: Freeze, SCENARIO: Freeze,

§

impl<COMMITMENT, INTENT, PROCESS, SCENARIO> RefUnwindSafe for Plan<COMMITMENT, INTENT, PROCESS, SCENARIO>
where COMMITMENT: RefUnwindSafe, INTENT: RefUnwindSafe, PROCESS: RefUnwindSafe, SCENARIO: RefUnwindSafe,

§

impl<COMMITMENT, INTENT, PROCESS, SCENARIO> Send for Plan<COMMITMENT, INTENT, PROCESS, SCENARIO>
where COMMITMENT: Send, INTENT: Send, PROCESS: Send, SCENARIO: Send,

§

impl<COMMITMENT, INTENT, PROCESS, SCENARIO> Sync for Plan<COMMITMENT, INTENT, PROCESS, SCENARIO>
where COMMITMENT: Sync, INTENT: Sync, PROCESS: Sync, SCENARIO: Sync,

§

impl<COMMITMENT, INTENT, PROCESS, SCENARIO> Unpin for Plan<COMMITMENT, INTENT, PROCESS, SCENARIO>
where COMMITMENT: Unpin, INTENT: Unpin, PROCESS: Unpin, SCENARIO: Unpin,

§

impl<COMMITMENT, INTENT, PROCESS, SCENARIO> UnwindSafe for Plan<COMMITMENT, INTENT, PROCESS, SCENARIO>
where COMMITMENT: UnwindSafe, INTENT: UnwindSafe, PROCESS: 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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,