Struct vf_rs::vf::Scenario

source ·
pub struct Scenario<SCENARIODEFINITION, AGENT, SCENARIO> { /* private fields */ }
Expand description

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

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

Implementations§

source§

impl<SCENARIODEFINITION, AGENT, SCENARIO> Scenario<SCENARIODEFINITION, AGENT, SCENARIO>

source

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

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

source

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

The planned or actual beginning of a flow or process.

source

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

The planned or actual end of a flow or process.

source

pub fn in_scope_of_mut(&mut self) -> &mut Vec<AGENT>

In the context of an agent, a grouping generally used for accounting, reporting.

source

pub fn name_mut(&mut self) -> &mut 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 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<SCENARIODEFINITION, AGENT, SCENARIO> Scenario<SCENARIODEFINITION, AGENT, SCENARIO>

source

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

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

source

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

The planned or actual beginning of a flow or process.

source

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

The planned or actual end of a flow or process.

source

pub fn set_in_scope_of(&mut self, val: Vec<AGENT>) -> &mut Self

In the context of an agent, a grouping generally used for accounting, reporting.

source

pub fn set_name(&mut self, val: 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_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<SCENARIODEFINITION, AGENT, SCENARIO> Scenario<SCENARIODEFINITION, AGENT, SCENARIO>

source

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

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

source

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

The planned or actual beginning of a flow or process.

source

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

The planned or actual end of a flow or process.

source

pub fn in_scope_of(&self) -> &Vec<AGENT>

In the context of an agent, a grouping generally used for accounting, reporting.

source

pub fn name(&self) -> &String

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

source

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

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<SCENARIODEFINITION, AGENT, SCENARIO> Scenario<SCENARIODEFINITION, AGENT, SCENARIO>

source

pub fn builder() -> ScenarioBuilder<SCENARIODEFINITION, AGENT, SCENARIO>

Create an empty builder object for Scenario

source

pub fn into_builder( self ) -> ScenarioBuilder<SCENARIODEFINITION, AGENT, SCENARIO>

Turns Scenario into ScenarioBuilder

Trait Implementations§

source§

impl<SCENARIODEFINITION: Clone, AGENT: Clone, SCENARIO: Clone> Clone for Scenario<SCENARIODEFINITION, AGENT, SCENARIO>

source§

fn clone(&self) -> Scenario<SCENARIODEFINITION, AGENT, 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<SCENARIODEFINITION: Debug, AGENT: Debug, SCENARIO: Debug> Debug for Scenario<SCENARIODEFINITION, AGENT, SCENARIO>

source§

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

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

impl<'de, SCENARIODEFINITION, AGENT, SCENARIO> Deserialize<'de> for Scenario<SCENARIODEFINITION, AGENT, SCENARIO>
where SCENARIODEFINITION: Deserialize<'de>, AGENT: 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<SCENARIODEFINITION: PartialEq, AGENT: PartialEq, SCENARIO: PartialEq> PartialEq for Scenario<SCENARIODEFINITION, AGENT, SCENARIO>

source§

fn eq(&self, other: &Scenario<SCENARIODEFINITION, AGENT, 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<SCENARIODEFINITION, AGENT, SCENARIO> Serialize for Scenario<SCENARIODEFINITION, AGENT, SCENARIO>
where SCENARIODEFINITION: Serialize, AGENT: 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<SCENARIODEFINITION, AGENT, SCENARIO> StructuralPartialEq for Scenario<SCENARIODEFINITION, AGENT, SCENARIO>

Auto Trait Implementations§

§

impl<SCENARIODEFINITION, AGENT, SCENARIO> Freeze for Scenario<SCENARIODEFINITION, AGENT, SCENARIO>
where SCENARIO: Freeze, SCENARIODEFINITION: Freeze,

§

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

§

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

§

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

§

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

§

impl<SCENARIODEFINITION, AGENT, SCENARIO> UnwindSafe for Scenario<SCENARIODEFINITION, AGENT, SCENARIO>
where AGENT: UnwindSafe, SCENARIO: UnwindSafe, SCENARIODEFINITION: 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>,