#[non_exhaustive]pub struct NumericalMeasureFieldBuilder { /* private fields */ }Expand description
A builder for NumericalMeasureField.
Implementations§
source§impl NumericalMeasureFieldBuilder
impl NumericalMeasureFieldBuilder
sourcepub fn field_id(self, input: impl Into<String>) -> Self
pub fn field_id(self, input: impl Into<String>) -> Self
The custom field ID.
This field is required.sourcepub fn set_field_id(self, input: Option<String>) -> Self
pub fn set_field_id(self, input: Option<String>) -> Self
The custom field ID.
sourcepub fn get_field_id(&self) -> &Option<String>
pub fn get_field_id(&self) -> &Option<String>
The custom field ID.
sourcepub fn column(self, input: ColumnIdentifier) -> Self
pub fn column(self, input: ColumnIdentifier) -> Self
The column that is used in the NumericalMeasureField.
sourcepub fn set_column(self, input: Option<ColumnIdentifier>) -> Self
pub fn set_column(self, input: Option<ColumnIdentifier>) -> Self
The column that is used in the NumericalMeasureField.
sourcepub fn get_column(&self) -> &Option<ColumnIdentifier>
pub fn get_column(&self) -> &Option<ColumnIdentifier>
The column that is used in the NumericalMeasureField.
sourcepub fn aggregation_function(self, input: NumericalAggregationFunction) -> Self
pub fn aggregation_function(self, input: NumericalAggregationFunction) -> Self
The aggregation function of the measure field.
sourcepub fn set_aggregation_function(
self,
input: Option<NumericalAggregationFunction>
) -> Self
pub fn set_aggregation_function( self, input: Option<NumericalAggregationFunction> ) -> Self
The aggregation function of the measure field.
sourcepub fn get_aggregation_function(&self) -> &Option<NumericalAggregationFunction>
pub fn get_aggregation_function(&self) -> &Option<NumericalAggregationFunction>
The aggregation function of the measure field.
sourcepub fn format_configuration(self, input: NumberFormatConfiguration) -> Self
pub fn format_configuration(self, input: NumberFormatConfiguration) -> Self
The format configuration of the field.
sourcepub fn set_format_configuration(
self,
input: Option<NumberFormatConfiguration>
) -> Self
pub fn set_format_configuration( self, input: Option<NumberFormatConfiguration> ) -> Self
The format configuration of the field.
sourcepub fn get_format_configuration(&self) -> &Option<NumberFormatConfiguration>
pub fn get_format_configuration(&self) -> &Option<NumberFormatConfiguration>
The format configuration of the field.
sourcepub fn build(self) -> Result<NumericalMeasureField, BuildError>
pub fn build(self) -> Result<NumericalMeasureField, BuildError>
Consumes the builder and constructs a NumericalMeasureField.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for NumericalMeasureFieldBuilder
impl Clone for NumericalMeasureFieldBuilder
source§fn clone(&self) -> NumericalMeasureFieldBuilder
fn clone(&self) -> NumericalMeasureFieldBuilder
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 NumericalMeasureFieldBuilder
impl Debug for NumericalMeasureFieldBuilder
source§impl Default for NumericalMeasureFieldBuilder
impl Default for NumericalMeasureFieldBuilder
source§fn default() -> NumericalMeasureFieldBuilder
fn default() -> NumericalMeasureFieldBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for NumericalMeasureFieldBuilder
impl PartialEq for NumericalMeasureFieldBuilder
source§fn eq(&self, other: &NumericalMeasureFieldBuilder) -> bool
fn eq(&self, other: &NumericalMeasureFieldBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for NumericalMeasureFieldBuilder
Auto Trait Implementations§
impl RefUnwindSafe for NumericalMeasureFieldBuilder
impl Send for NumericalMeasureFieldBuilder
impl Sync for NumericalMeasureFieldBuilder
impl Unpin for NumericalMeasureFieldBuilder
impl UnwindSafe for NumericalMeasureFieldBuilder
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.