#[non_exhaustive]pub struct PredefinedHierarchyBuilder { /* private fields */ }
Expand description
A builder for PredefinedHierarchy
.
Implementations§
source§impl PredefinedHierarchyBuilder
impl PredefinedHierarchyBuilder
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 predefined hierarchy.
This field is required.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 predefined hierarchy.
sourcepub fn get_hierarchy_id(&self) -> &Option<String>
pub fn get_hierarchy_id(&self) -> &Option<String>
The hierarchy ID of the predefined hierarchy.
sourcepub fn columns(self, input: ColumnIdentifier) -> Self
pub fn columns(self, input: ColumnIdentifier) -> Self
Appends an item to columns
.
To override the contents of this collection use set_columns
.
The list of columns that define the predefined hierarchy.
sourcepub fn set_columns(self, input: Option<Vec<ColumnIdentifier>>) -> Self
pub fn set_columns(self, input: Option<Vec<ColumnIdentifier>>) -> Self
The list of columns that define the predefined hierarchy.
sourcepub fn get_columns(&self) -> &Option<Vec<ColumnIdentifier>>
pub fn get_columns(&self) -> &Option<Vec<ColumnIdentifier>>
The list of columns that define the predefined 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 predefined 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 predefined 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 predefined hierarchy.
sourcepub fn build(self) -> Result<PredefinedHierarchy, BuildError>
pub fn build(self) -> Result<PredefinedHierarchy, BuildError>
Consumes the builder and constructs a PredefinedHierarchy
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PredefinedHierarchyBuilder
impl Clone for PredefinedHierarchyBuilder
source§fn clone(&self) -> PredefinedHierarchyBuilder
fn clone(&self) -> PredefinedHierarchyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PredefinedHierarchyBuilder
impl Debug for PredefinedHierarchyBuilder
source§impl Default for PredefinedHierarchyBuilder
impl Default for PredefinedHierarchyBuilder
source§fn default() -> PredefinedHierarchyBuilder
fn default() -> PredefinedHierarchyBuilder
impl StructuralPartialEq for PredefinedHierarchyBuilder
Auto Trait Implementations§
impl Freeze for PredefinedHierarchyBuilder
impl RefUnwindSafe for PredefinedHierarchyBuilder
impl Send for PredefinedHierarchyBuilder
impl Sync for PredefinedHierarchyBuilder
impl Unpin for PredefinedHierarchyBuilder
impl UnwindSafe for PredefinedHierarchyBuilder
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> 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)
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>
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