#[non_exhaustive]pub struct WhatIfPointScenarioBuilder { /* private fields */ }Expand description
A builder for WhatIfPointScenario.
Implementations§
source§impl WhatIfPointScenarioBuilder
impl WhatIfPointScenarioBuilder
sourcepub fn date(self, input: DateTime) -> Self
pub fn date(self, input: DateTime) -> Self
The date that you need the forecast results for.
This field is required.sourcepub fn set_date(self, input: Option<DateTime>) -> Self
pub fn set_date(self, input: Option<DateTime>) -> Self
The date 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.
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.
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.
sourcepub fn build(self) -> Result<WhatIfPointScenario, BuildError>
pub fn build(self) -> Result<WhatIfPointScenario, BuildError>
Consumes the builder and constructs a WhatIfPointScenario.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for WhatIfPointScenarioBuilder
impl Clone for WhatIfPointScenarioBuilder
source§fn clone(&self) -> WhatIfPointScenarioBuilder
fn clone(&self) -> WhatIfPointScenarioBuilder
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 WhatIfPointScenarioBuilder
impl Debug for WhatIfPointScenarioBuilder
source§impl Default for WhatIfPointScenarioBuilder
impl Default for WhatIfPointScenarioBuilder
source§fn default() -> WhatIfPointScenarioBuilder
fn default() -> WhatIfPointScenarioBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for WhatIfPointScenarioBuilder
impl PartialEq for WhatIfPointScenarioBuilder
source§fn eq(&self, other: &WhatIfPointScenarioBuilder) -> bool
fn eq(&self, other: &WhatIfPointScenarioBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for WhatIfPointScenarioBuilder
Auto Trait Implementations§
impl RefUnwindSafe for WhatIfPointScenarioBuilder
impl Send for WhatIfPointScenarioBuilder
impl Sync for WhatIfPointScenarioBuilder
impl Unpin for WhatIfPointScenarioBuilder
impl UnwindSafe for WhatIfPointScenarioBuilder
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
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>
Creates a shared type from an unshared type.