#[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
source§fn eq(&self, other: &DateTimeHierarchyBuilder) -> bool
fn eq(&self, other: &DateTimeHierarchyBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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> 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.