#[non_exhaustive]pub struct GrowthRateComputationBuilder { /* private fields */ }Expand description
A builder for GrowthRateComputation.
Implementations§
source§impl GrowthRateComputationBuilder
impl GrowthRateComputationBuilder
sourcepub fn computation_id(self, input: impl Into<String>) -> Self
pub fn computation_id(self, input: impl Into<String>) -> Self
The ID for a computation.
This field is required.sourcepub fn set_computation_id(self, input: Option<String>) -> Self
pub fn set_computation_id(self, input: Option<String>) -> Self
The ID for a computation.
sourcepub fn get_computation_id(&self) -> &Option<String>
pub fn get_computation_id(&self) -> &Option<String>
The ID for a computation.
sourcepub fn time(self, input: DimensionField) -> Self
pub fn time(self, input: DimensionField) -> Self
The time field that is used in a computation.
sourcepub fn set_time(self, input: Option<DimensionField>) -> Self
pub fn set_time(self, input: Option<DimensionField>) -> Self
The time field that is used in a computation.
sourcepub fn get_time(&self) -> &Option<DimensionField>
pub fn get_time(&self) -> &Option<DimensionField>
The time field that is used in a computation.
sourcepub fn value(self, input: MeasureField) -> Self
pub fn value(self, input: MeasureField) -> Self
The value field that is used in a computation.
sourcepub fn set_value(self, input: Option<MeasureField>) -> Self
pub fn set_value(self, input: Option<MeasureField>) -> Self
The value field that is used in a computation.
sourcepub fn get_value(&self) -> &Option<MeasureField>
pub fn get_value(&self) -> &Option<MeasureField>
The value field that is used in a computation.
sourcepub fn period_size(self, input: i32) -> Self
pub fn period_size(self, input: i32) -> Self
The period size setup of a growth rate computation.
sourcepub fn set_period_size(self, input: Option<i32>) -> Self
pub fn set_period_size(self, input: Option<i32>) -> Self
The period size setup of a growth rate computation.
sourcepub fn get_period_size(&self) -> &Option<i32>
pub fn get_period_size(&self) -> &Option<i32>
The period size setup of a growth rate computation.
sourcepub fn build(self) -> Result<GrowthRateComputation, BuildError>
pub fn build(self) -> Result<GrowthRateComputation, BuildError>
Consumes the builder and constructs a GrowthRateComputation.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GrowthRateComputationBuilder
impl Clone for GrowthRateComputationBuilder
source§fn clone(&self) -> GrowthRateComputationBuilder
fn clone(&self) -> GrowthRateComputationBuilder
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 GrowthRateComputationBuilder
impl Debug for GrowthRateComputationBuilder
source§impl Default for GrowthRateComputationBuilder
impl Default for GrowthRateComputationBuilder
source§fn default() -> GrowthRateComputationBuilder
fn default() -> GrowthRateComputationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for GrowthRateComputationBuilder
impl PartialEq for GrowthRateComputationBuilder
source§fn eq(&self, other: &GrowthRateComputationBuilder) -> bool
fn eq(&self, other: &GrowthRateComputationBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GrowthRateComputationBuilder
Auto Trait Implementations§
impl RefUnwindSafe for GrowthRateComputationBuilder
impl Send for GrowthRateComputationBuilder
impl Sync for GrowthRateComputationBuilder
impl Unpin for GrowthRateComputationBuilder
impl UnwindSafe for GrowthRateComputationBuilder
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.