#[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.
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.
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.
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) -> WhatIfRangeScenario
pub fn build(self) -> WhatIfRangeScenario
Consumes the builder and constructs a WhatIfRangeScenario.
Trait Implementations§
source§impl Clone for WhatIfRangeScenarioBuilder
impl Clone for WhatIfRangeScenarioBuilder
source§fn clone(&self) -> WhatIfRangeScenarioBuilder
fn clone(&self) -> WhatIfRangeScenarioBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
source§impl PartialEq<WhatIfRangeScenarioBuilder> for WhatIfRangeScenarioBuilder
impl PartialEq<WhatIfRangeScenarioBuilder> for WhatIfRangeScenarioBuilder
source§fn eq(&self, other: &WhatIfRangeScenarioBuilder) -> bool
fn eq(&self, other: &WhatIfRangeScenarioBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for WhatIfRangeScenarioBuilder
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more