#[non_exhaustive]pub struct DateDimensionFieldBuilder { /* private fields */ }Expand description
A builder for DateDimensionField.
Implementations§
source§impl DateDimensionFieldBuilder
impl DateDimensionFieldBuilder
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 column(self, input: ColumnIdentifier) -> Self
pub fn column(self, input: ColumnIdentifier) -> Self
The column that is used in the DateDimensionField.
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 DateDimensionField.
sourcepub fn date_granularity(self, input: TimeGranularity) -> Self
pub fn date_granularity(self, input: TimeGranularity) -> Self
The date granularity of the DateDimensionField. Choose one of the following options:
-
YEAR -
QUARTER -
MONTH -
WEEK -
DAY -
HOUR -
MINUTE -
SECOND -
MILLISECOND
sourcepub fn set_date_granularity(self, input: Option<TimeGranularity>) -> Self
pub fn set_date_granularity(self, input: Option<TimeGranularity>) -> Self
The date granularity of the DateDimensionField. Choose one of the following options:
-
YEAR -
QUARTER -
MONTH -
WEEK -
DAY -
HOUR -
MINUTE -
SECOND -
MILLISECOND
sourcepub fn hierarchy_id(self, input: impl Into<String>) -> Self
pub fn hierarchy_id(self, input: impl Into<String>) -> Self
The custom hierarchy ID.
sourcepub fn set_hierarchy_id(self, input: Option<String>) -> Self
pub fn set_hierarchy_id(self, input: Option<String>) -> Self
The custom hierarchy ID.
sourcepub fn format_configuration(self, input: DateTimeFormatConfiguration) -> Self
pub fn format_configuration(self, input: DateTimeFormatConfiguration) -> Self
The format configuration of the field.
sourcepub fn set_format_configuration(
self,
input: Option<DateTimeFormatConfiguration>
) -> Self
pub fn set_format_configuration( self, input: Option<DateTimeFormatConfiguration> ) -> Self
The format configuration of the field.
sourcepub fn build(self) -> DateDimensionField
pub fn build(self) -> DateDimensionField
Consumes the builder and constructs a DateDimensionField.
Trait Implementations§
source§impl Clone for DateDimensionFieldBuilder
impl Clone for DateDimensionFieldBuilder
source§fn clone(&self) -> DateDimensionFieldBuilder
fn clone(&self) -> DateDimensionFieldBuilder
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 DateDimensionFieldBuilder
impl Debug for DateDimensionFieldBuilder
source§impl Default for DateDimensionFieldBuilder
impl Default for DateDimensionFieldBuilder
source§fn default() -> DateDimensionFieldBuilder
fn default() -> DateDimensionFieldBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<DateDimensionFieldBuilder> for DateDimensionFieldBuilder
impl PartialEq<DateDimensionFieldBuilder> for DateDimensionFieldBuilder
source§fn eq(&self, other: &DateDimensionFieldBuilder) -> bool
fn eq(&self, other: &DateDimensionFieldBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DateDimensionFieldBuilder
Auto Trait Implementations§
impl RefUnwindSafe for DateDimensionFieldBuilder
impl Send for DateDimensionFieldBuilder
impl Sync for DateDimensionFieldBuilder
impl Unpin for DateDimensionFieldBuilder
impl UnwindSafe for DateDimensionFieldBuilder
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