#[non_exhaustive]pub struct ExplicitHierarchyBuilder { /* private fields */ }Expand description
A builder for ExplicitHierarchy.
Implementations§
source§impl ExplicitHierarchyBuilder
impl ExplicitHierarchyBuilder
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 explicit 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 explicit hierarchy.
sourcepub fn get_hierarchy_id(&self) -> &Option<String>
pub fn get_hierarchy_id(&self) -> &Option<String>
The hierarchy ID of the explicit 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 explicit 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 explicit hierarchy.
sourcepub fn get_columns(&self) -> &Option<Vec<ColumnIdentifier>>
pub fn get_columns(&self) -> &Option<Vec<ColumnIdentifier>>
The list of columns that define the explicit 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 explicit 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 explicit 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 explicit hierarchy.
sourcepub fn build(self) -> Result<ExplicitHierarchy, BuildError>
pub fn build(self) -> Result<ExplicitHierarchy, BuildError>
Consumes the builder and constructs a ExplicitHierarchy.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ExplicitHierarchyBuilder
impl Clone for ExplicitHierarchyBuilder
source§fn clone(&self) -> ExplicitHierarchyBuilder
fn clone(&self) -> ExplicitHierarchyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ExplicitHierarchyBuilder
impl Debug for ExplicitHierarchyBuilder
source§impl Default for ExplicitHierarchyBuilder
impl Default for ExplicitHierarchyBuilder
source§fn default() -> ExplicitHierarchyBuilder
fn default() -> ExplicitHierarchyBuilder
source§impl PartialEq for ExplicitHierarchyBuilder
impl PartialEq for ExplicitHierarchyBuilder
source§fn eq(&self, other: &ExplicitHierarchyBuilder) -> bool
fn eq(&self, other: &ExplicitHierarchyBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ExplicitHierarchyBuilder
Auto Trait Implementations§
impl Freeze for ExplicitHierarchyBuilder
impl RefUnwindSafe for ExplicitHierarchyBuilder
impl Send for ExplicitHierarchyBuilder
impl Sync for ExplicitHierarchyBuilder
impl Unpin for ExplicitHierarchyBuilder
impl UnwindSafe for ExplicitHierarchyBuilder
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