[][src]Struct vf_rs::scenario_definition::ScenarioDefinition

pub struct ScenarioDefinition { /* fields omitted */ }

The type definition of one or more scenarios, such as Yearly Budget.

ID: https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/ScenarioDefinition.json

Methods

impl ScenarioDefinition[src]

pub fn has_duration(&self) -> &Option<Box<Duration>>[src]

The duration of the scenario, often an accounting period.

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

An informal or formal textual identifier for the item. Does not imply uniqueness.

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

A textual comment or description.

impl ScenarioDefinition[src]

pub fn set_has_duration(&mut self, val: Option<Box<Duration>>) -> &mut Self[src]

The duration of the scenario, often an accounting period.

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

An informal or formal textual identifier for the item. Does not imply uniqueness.

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

A textual comment or description.

impl ScenarioDefinition[src]

pub fn has_duration_mut(&mut self) -> &mut Option<Box<Duration>>[src]

The duration of the scenario, often an accounting period.

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

An informal or formal textual identifier for the item. Does not imply uniqueness.

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

A textual comment or description.

impl ScenarioDefinition[src]

pub fn into_builder(self) -> ScenarioDefinitionBuilder[src]

Turns ScenarioDefinition into ScenarioDefinitionBuilder

Trait Implementations

impl Clone for ScenarioDefinition[src]

impl Debug for ScenarioDefinition[src]

impl<'de> Deserialize<'de> for ScenarioDefinition[src]

impl PartialEq<ScenarioDefinition> for ScenarioDefinition[src]

impl Serialize for ScenarioDefinition[src]

impl StructuralPartialEq for ScenarioDefinition[src]

Auto Trait Implementations

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: 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.