[][src]Struct vf_rs::vf::builders::ScenarioBuilder

pub struct ScenarioBuilder<SCENARIODEFINITION, SCENARIO> { /* fields omitted */ }

Builder for Scenario.

Implementations

impl<SCENARIODEFINITION, SCENARIO> ScenarioBuilder<SCENARIODEFINITION, SCENARIO>[src]

pub fn defined_as<VALUE: Into<SCENARIODEFINITION>>(self, value: VALUE) -> Self[src]

The scenario definition for this scenario, for example yearly budget.

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

The planned or actual beginning of a flow or process.

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

The planned or actual end of a flow or process.

pub fn in_scope_of<VALUE: Into<Vec<Url>>>(self, value: VALUE) -> Self[src]

Grouping around something to create a boundary or context, used for documenting, accounting, planning.

pub fn name<VALUE: Into<String>>(self, value: VALUE) -> Self[src]

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

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

pub fn refinement_of<VALUE: Into<SCENARIO>>(self, value: VALUE) -> Self[src]

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

pub fn build(self) -> Result<Scenario<SCENARIODEFINITION, SCENARIO>, String>[src]

Builds a new Scenario.

Errors

If a required field has not been initialized.

Trait Implementations

impl<SCENARIODEFINITION: Default, SCENARIO: Default> Default for ScenarioBuilder<SCENARIODEFINITION, SCENARIO>[src]

Auto Trait Implementations

impl<SCENARIODEFINITION, SCENARIO> RefUnwindSafe for ScenarioBuilder<SCENARIODEFINITION, SCENARIO> where
    SCENARIO: RefUnwindSafe,
    SCENARIODEFINITION: RefUnwindSafe

impl<SCENARIODEFINITION, SCENARIO> Send for ScenarioBuilder<SCENARIODEFINITION, SCENARIO> where
    SCENARIO: Send,
    SCENARIODEFINITION: Send

impl<SCENARIODEFINITION, SCENARIO> Sync for ScenarioBuilder<SCENARIODEFINITION, SCENARIO> where
    SCENARIO: Sync,
    SCENARIODEFINITION: Sync

impl<SCENARIODEFINITION, SCENARIO> Unpin for ScenarioBuilder<SCENARIODEFINITION, SCENARIO> where
    SCENARIO: Unpin,
    SCENARIODEFINITION: Unpin

impl<SCENARIODEFINITION, SCENARIO> UnwindSafe for ScenarioBuilder<SCENARIODEFINITION, SCENARIO> where
    SCENARIO: UnwindSafe,
    SCENARIODEFINITION: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.