#[non_exhaustive]pub struct WhatIfRangeScenarioBuilder { /* private fields */ }Expand description
A builder for WhatIfRangeScenario.
Implementations§
source§impl WhatIfRangeScenarioBuilder
impl WhatIfRangeScenarioBuilder
sourcepub fn start_date(self, input: DateTime) -> Self
pub fn start_date(self, input: DateTime) -> Self
The start date in the date range that you need the forecast results for.
This field is required.sourcepub fn set_start_date(self, input: Option<DateTime>) -> Self
pub fn set_start_date(self, input: Option<DateTime>) -> Self
The start date in the date range that you need the forecast results for.
sourcepub fn get_start_date(&self) -> &Option<DateTime>
pub fn get_start_date(&self) -> &Option<DateTime>
The start date in the date range that you need the forecast results for.
sourcepub fn end_date(self, input: DateTime) -> Self
pub fn end_date(self, input: DateTime) -> Self
The end date in the date range that you need the forecast results for.
This field is required.sourcepub fn set_end_date(self, input: Option<DateTime>) -> Self
pub fn set_end_date(self, input: Option<DateTime>) -> Self
The end date in the date range that you need the forecast results for.
sourcepub fn get_end_date(&self) -> &Option<DateTime>
pub fn get_end_date(&self) -> &Option<DateTime>
The end date in the date range that you need the forecast results for.
sourcepub fn value(self, input: f64) -> Self
pub fn value(self, input: f64) -> Self
The target value that you want to meet for the provided date range.
This field is required.sourcepub fn set_value(self, input: Option<f64>) -> Self
pub fn set_value(self, input: Option<f64>) -> Self
The target value that you want to meet for the provided date range.
sourcepub fn get_value(&self) -> &Option<f64>
pub fn get_value(&self) -> &Option<f64>
The target value that you want to meet for the provided date range.
sourcepub fn build(self) -> Result<WhatIfRangeScenario, BuildError>
pub fn build(self) -> Result<WhatIfRangeScenario, BuildError>
Consumes the builder and constructs a WhatIfRangeScenario.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for WhatIfRangeScenarioBuilder
impl Clone for WhatIfRangeScenarioBuilder
source§fn clone(&self) -> WhatIfRangeScenarioBuilder
fn clone(&self) -> WhatIfRangeScenarioBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for WhatIfRangeScenarioBuilder
impl Debug for WhatIfRangeScenarioBuilder
source§impl Default for WhatIfRangeScenarioBuilder
impl Default for WhatIfRangeScenarioBuilder
source§fn default() -> WhatIfRangeScenarioBuilder
fn default() -> WhatIfRangeScenarioBuilder
source§impl PartialEq for WhatIfRangeScenarioBuilder
impl PartialEq for WhatIfRangeScenarioBuilder
source§fn eq(&self, other: &WhatIfRangeScenarioBuilder) -> bool
fn eq(&self, other: &WhatIfRangeScenarioBuilder) -> bool
self and other values to be equal, and is used
by ==.