#[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 ==
.impl StructuralPartialEq for DateDimensionFieldBuilder
Auto Trait Implementations§
impl Freeze for DateDimensionFieldBuilder
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
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