#[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 ==.impl StructuralPartialEq for WhatIfRangeScenarioBuilder
Auto Trait Implementations§
impl Freeze for WhatIfRangeScenarioBuilder
impl RefUnwindSafe for WhatIfRangeScenarioBuilder
impl Send for WhatIfRangeScenarioBuilder
impl Sync for WhatIfRangeScenarioBuilder
impl Unpin for WhatIfRangeScenarioBuilder
impl UnwindSafe for WhatIfRangeScenarioBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more