#[non_exhaustive]pub struct DateDimensionFieldBuilder { /* private fields */ }Expand description
A builder for DateDimensionField.
Implementations§
source§impl DateDimensionFieldBuilder
impl DateDimensionFieldBuilder
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 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 get_column(&self) -> &Option<ColumnIdentifier>
pub fn get_column(&self) -> &Option<ColumnIdentifier>
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 get_date_granularity(&self) -> &Option<TimeGranularity>
pub fn get_date_granularity(&self) -> &Option<TimeGranularity>
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 get_hierarchy_id(&self) -> &Option<String>
pub fn get_hierarchy_id(&self) -> &Option<String>
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 get_format_configuration(&self) -> &Option<DateTimeFormatConfiguration>
pub fn get_format_configuration(&self) -> &Option<DateTimeFormatConfiguration>
The format configuration of the field.
sourcepub fn build(self) -> Result<DateDimensionField, BuildError>
pub fn build(self) -> Result<DateDimensionField, BuildError>
Consumes the builder and constructs a DateDimensionField.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DateDimensionFieldBuilder
impl Clone for DateDimensionFieldBuilder
source§fn clone(&self) -> DateDimensionFieldBuilder
fn clone(&self) -> DateDimensionFieldBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
source§impl PartialEq for DateDimensionFieldBuilder
impl PartialEq for DateDimensionFieldBuilder
source§fn eq(&self, other: &DateDimensionFieldBuilder) -> bool
fn eq(&self, other: &DateDimensionFieldBuilder) -> bool
self and other values to be equal, and is used
by ==.