[][src]Struct vf_rs::vf::Scenario

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

An estimated or analytical logical collection of higher level processes used for budgeting, analysis, plan refinement, etc.

ID: https://w3id.org/valueflows#Scenario

Implementations

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

pub fn defined_as(&self) -> &Option<SCENARIODEFINITION>[src]

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

pub fn has_beginning(&self) -> &Option<DateTime<Utc>>[src]

The planned or actual beginning of a flow or process.

pub fn has_end(&self) -> &Option<DateTime<Utc>>[src]

The planned or actual end of a flow or process.

pub fn in_scope_of(&self) -> &Vec<Url>[src]

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

pub fn name(&self) -> &String[src]

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

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

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

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

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

pub fn set_defined_as(&mut self, val: Option<SCENARIODEFINITION>) -> &mut Self[src]

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

pub fn set_has_beginning(&mut self, val: Option<DateTime<Utc>>) -> &mut Self[src]

The planned or actual beginning of a flow or process.

pub fn set_has_end(&mut self, val: Option<DateTime<Utc>>) -> &mut Self[src]

The planned or actual end of a flow or process.

pub fn set_in_scope_of(&mut self, val: Vec<Url>) -> &mut Self[src]

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

pub fn set_name(&mut self, val: String) -> &mut Self[src]

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

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

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

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

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

pub fn defined_as_mut(&mut self) -> &mut Option<SCENARIODEFINITION>[src]

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

pub fn has_beginning_mut(&mut self) -> &mut Option<DateTime<Utc>>[src]

The planned or actual beginning of a flow or process.

pub fn has_end_mut(&mut self) -> &mut Option<DateTime<Utc>>[src]

The planned or actual end of a flow or process.

pub fn in_scope_of_mut(&mut self) -> &mut Vec<Url>[src]

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

pub fn name_mut(&mut self) -> &mut String[src]

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

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

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

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

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

pub fn builder() -> ScenarioBuilder<SCENARIODEFINITION, SCENARIO>[src]

Create an empty builder object for Scenario

pub fn into_builder(self) -> ScenarioBuilder<SCENARIODEFINITION, SCENARIO>[src]

Turns Scenario into ScenarioBuilder

Trait Implementations

impl<SCENARIODEFINITION: Clone, SCENARIO: Clone> Clone for Scenario<SCENARIODEFINITION, SCENARIO>[src]

impl<SCENARIODEFINITION: Debug, SCENARIO: Debug> Debug for Scenario<SCENARIODEFINITION, SCENARIO>[src]

impl<'de, SCENARIODEFINITION, SCENARIO> Deserialize<'de> for Scenario<SCENARIODEFINITION, SCENARIO> where
    SCENARIODEFINITION: Deserialize<'de>,
    SCENARIO: Deserialize<'de>, 
[src]

impl<SCENARIODEFINITION: PartialEq, SCENARIO: PartialEq> PartialEq<Scenario<SCENARIODEFINITION, SCENARIO>> for Scenario<SCENARIODEFINITION, SCENARIO>[src]

impl<SCENARIODEFINITION, SCENARIO> Serialize for Scenario<SCENARIODEFINITION, SCENARIO> where
    SCENARIODEFINITION: Serialize,
    SCENARIO: Serialize
[src]

impl<SCENARIODEFINITION, SCENARIO> StructuralPartialEq for Scenario<SCENARIODEFINITION, SCENARIO>[src]

Auto Trait Implementations

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

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

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

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

impl<SCENARIODEFINITION, SCENARIO> UnwindSafe for Scenario<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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.