#[non_exhaustive]pub struct DimensionMappingBuilder { /* private fields */ }
Expand description
A builder for DimensionMapping
.
Implementations§
source§impl DimensionMappingBuilder
impl DimensionMappingBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
Column name from query result.
This field is required.sourcepub fn dimension_value_type(self, input: DimensionValueType) -> Self
pub fn dimension_value_type(self, input: DimensionValueType) -> Self
Type for the dimension.
This field is required.sourcepub fn set_dimension_value_type(self, input: Option<DimensionValueType>) -> Self
pub fn set_dimension_value_type(self, input: Option<DimensionValueType>) -> Self
Type for the dimension.
sourcepub fn get_dimension_value_type(&self) -> &Option<DimensionValueType>
pub fn get_dimension_value_type(&self) -> &Option<DimensionValueType>
Type for the dimension.
sourcepub fn build(self) -> Result<DimensionMapping, BuildError>
pub fn build(self) -> Result<DimensionMapping, BuildError>
Consumes the builder and constructs a DimensionMapping
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DimensionMappingBuilder
impl Clone for DimensionMappingBuilder
source§fn clone(&self) -> DimensionMappingBuilder
fn clone(&self) -> DimensionMappingBuilder
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 DimensionMappingBuilder
impl Debug for DimensionMappingBuilder
source§impl Default for DimensionMappingBuilder
impl Default for DimensionMappingBuilder
source§fn default() -> DimensionMappingBuilder
fn default() -> DimensionMappingBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DimensionMappingBuilder
impl PartialEq for DimensionMappingBuilder
source§fn eq(&self, other: &DimensionMappingBuilder) -> bool
fn eq(&self, other: &DimensionMappingBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DimensionMappingBuilder
Auto Trait Implementations§
impl Freeze for DimensionMappingBuilder
impl RefUnwindSafe for DimensionMappingBuilder
impl Send for DimensionMappingBuilder
impl Sync for DimensionMappingBuilder
impl Unpin for DimensionMappingBuilder
impl UnwindSafe for DimensionMappingBuilder
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.