#[non_exhaustive]pub struct DateTimeHierarchyBuilder { /* private fields */ }
Expand description
A builder for DateTimeHierarchy
.
Implementations§
source§impl DateTimeHierarchyBuilder
impl DateTimeHierarchyBuilder
sourcepub fn hierarchy_id(self, input: impl Into<String>) -> Self
pub fn hierarchy_id(self, input: impl Into<String>) -> Self
The hierarchy ID of the DateTime
hierarchy.
sourcepub fn set_hierarchy_id(self, input: Option<String>) -> Self
pub fn set_hierarchy_id(self, input: Option<String>) -> Self
The hierarchy ID of the DateTime
hierarchy.
sourcepub fn get_hierarchy_id(&self) -> &Option<String>
pub fn get_hierarchy_id(&self) -> &Option<String>
The hierarchy ID of the DateTime
hierarchy.
sourcepub fn drill_down_filters(self, input: DrillDownFilter) -> Self
pub fn drill_down_filters(self, input: DrillDownFilter) -> Self
Appends an item to drill_down_filters
.
To override the contents of this collection use set_drill_down_filters
.
The option that determines the drill down filters for the DateTime
hierarchy.
sourcepub fn set_drill_down_filters(self, input: Option<Vec<DrillDownFilter>>) -> Self
pub fn set_drill_down_filters(self, input: Option<Vec<DrillDownFilter>>) -> Self
The option that determines the drill down filters for the DateTime
hierarchy.
sourcepub fn get_drill_down_filters(&self) -> &Option<Vec<DrillDownFilter>>
pub fn get_drill_down_filters(&self) -> &Option<Vec<DrillDownFilter>>
The option that determines the drill down filters for the DateTime
hierarchy.
sourcepub fn build(self) -> Result<DateTimeHierarchy, BuildError>
pub fn build(self) -> Result<DateTimeHierarchy, BuildError>
Consumes the builder and constructs a DateTimeHierarchy
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DateTimeHierarchyBuilder
impl Clone for DateTimeHierarchyBuilder
source§fn clone(&self) -> DateTimeHierarchyBuilder
fn clone(&self) -> DateTimeHierarchyBuilder
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 DateTimeHierarchyBuilder
impl Debug for DateTimeHierarchyBuilder
source§impl Default for DateTimeHierarchyBuilder
impl Default for DateTimeHierarchyBuilder
source§fn default() -> DateTimeHierarchyBuilder
fn default() -> DateTimeHierarchyBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DateTimeHierarchyBuilder
impl PartialEq for DateTimeHierarchyBuilder
impl StructuralPartialEq for DateTimeHierarchyBuilder
Auto Trait Implementations§
impl Freeze for DateTimeHierarchyBuilder
impl RefUnwindSafe for DateTimeHierarchyBuilder
impl Send for DateTimeHierarchyBuilder
impl Sync for DateTimeHierarchyBuilder
impl Unpin for DateTimeHierarchyBuilder
impl UnwindSafe for DateTimeHierarchyBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.