#[non_exhaustive]pub struct MixedMeasureMappingBuilder { /* private fields */ }
Expand description
A builder for MixedMeasureMapping
.
Implementations§
source§impl MixedMeasureMappingBuilder
impl MixedMeasureMappingBuilder
sourcepub fn measure_name(self, input: impl Into<String>) -> Self
pub fn measure_name(self, input: impl Into<String>) -> Self
Refers to the value of measure_name in a result row. This field is required if MeasureNameColumn is provided.
sourcepub fn set_measure_name(self, input: Option<String>) -> Self
pub fn set_measure_name(self, input: Option<String>) -> Self
Refers to the value of measure_name in a result row. This field is required if MeasureNameColumn is provided.
sourcepub fn get_measure_name(&self) -> &Option<String>
pub fn get_measure_name(&self) -> &Option<String>
Refers to the value of measure_name in a result row. This field is required if MeasureNameColumn is provided.
sourcepub fn source_column(self, input: impl Into<String>) -> Self
pub fn source_column(self, input: impl Into<String>) -> Self
This field refers to the source column from which measure-value is to be read for result materialization.
sourcepub fn set_source_column(self, input: Option<String>) -> Self
pub fn set_source_column(self, input: Option<String>) -> Self
This field refers to the source column from which measure-value is to be read for result materialization.
sourcepub fn get_source_column(&self) -> &Option<String>
pub fn get_source_column(&self) -> &Option<String>
This field refers to the source column from which measure-value is to be read for result materialization.
sourcepub fn target_measure_name(self, input: impl Into<String>) -> Self
pub fn target_measure_name(self, input: impl Into<String>) -> Self
Target measure name to be used. If not provided, the target measure name by default would be measure-name if provided, or sourceColumn otherwise.
sourcepub fn set_target_measure_name(self, input: Option<String>) -> Self
pub fn set_target_measure_name(self, input: Option<String>) -> Self
Target measure name to be used. If not provided, the target measure name by default would be measure-name if provided, or sourceColumn otherwise.
sourcepub fn get_target_measure_name(&self) -> &Option<String>
pub fn get_target_measure_name(&self) -> &Option<String>
Target measure name to be used. If not provided, the target measure name by default would be measure-name if provided, or sourceColumn otherwise.
sourcepub fn measure_value_type(self, input: MeasureValueType) -> Self
pub fn measure_value_type(self, input: MeasureValueType) -> Self
Type of the value that is to be read from sourceColumn. If the mapping is for MULTI, use MeasureValueType.MULTI.
This field is required.sourcepub fn set_measure_value_type(self, input: Option<MeasureValueType>) -> Self
pub fn set_measure_value_type(self, input: Option<MeasureValueType>) -> Self
Type of the value that is to be read from sourceColumn. If the mapping is for MULTI, use MeasureValueType.MULTI.
sourcepub fn get_measure_value_type(&self) -> &Option<MeasureValueType>
pub fn get_measure_value_type(&self) -> &Option<MeasureValueType>
Type of the value that is to be read from sourceColumn. If the mapping is for MULTI, use MeasureValueType.MULTI.
sourcepub fn multi_measure_attribute_mappings(
self,
input: MultiMeasureAttributeMapping
) -> Self
pub fn multi_measure_attribute_mappings( self, input: MultiMeasureAttributeMapping ) -> Self
Appends an item to multi_measure_attribute_mappings
.
To override the contents of this collection use set_multi_measure_attribute_mappings
.
Required when measureValueType is MULTI. Attribute mappings for MULTI value measures.
sourcepub fn set_multi_measure_attribute_mappings(
self,
input: Option<Vec<MultiMeasureAttributeMapping>>
) -> Self
pub fn set_multi_measure_attribute_mappings( self, input: Option<Vec<MultiMeasureAttributeMapping>> ) -> Self
Required when measureValueType is MULTI. Attribute mappings for MULTI value measures.
sourcepub fn get_multi_measure_attribute_mappings(
&self
) -> &Option<Vec<MultiMeasureAttributeMapping>>
pub fn get_multi_measure_attribute_mappings( &self ) -> &Option<Vec<MultiMeasureAttributeMapping>>
Required when measureValueType is MULTI. Attribute mappings for MULTI value measures.
sourcepub fn build(self) -> Result<MixedMeasureMapping, BuildError>
pub fn build(self) -> Result<MixedMeasureMapping, BuildError>
Consumes the builder and constructs a MixedMeasureMapping
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for MixedMeasureMappingBuilder
impl Clone for MixedMeasureMappingBuilder
source§fn clone(&self) -> MixedMeasureMappingBuilder
fn clone(&self) -> MixedMeasureMappingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MixedMeasureMappingBuilder
impl Debug for MixedMeasureMappingBuilder
source§impl Default for MixedMeasureMappingBuilder
impl Default for MixedMeasureMappingBuilder
source§fn default() -> MixedMeasureMappingBuilder
fn default() -> MixedMeasureMappingBuilder
source§impl PartialEq for MixedMeasureMappingBuilder
impl PartialEq for MixedMeasureMappingBuilder
source§fn eq(&self, other: &MixedMeasureMappingBuilder) -> bool
fn eq(&self, other: &MixedMeasureMappingBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MixedMeasureMappingBuilder
Auto Trait Implementations§
impl Freeze for MixedMeasureMappingBuilder
impl RefUnwindSafe for MixedMeasureMappingBuilder
impl Send for MixedMeasureMappingBuilder
impl Sync for MixedMeasureMappingBuilder
impl Unpin for MixedMeasureMappingBuilder
impl UnwindSafe for MixedMeasureMappingBuilder
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