#[non_exhaustive]pub struct ContributionAnalysisDefaultBuilder { /* private fields */ }
Expand description
A builder for ContributionAnalysisDefault
.
Implementations§
source§impl ContributionAnalysisDefaultBuilder
impl ContributionAnalysisDefaultBuilder
sourcepub fn measure_field_id(self, input: impl Into<String>) -> Self
pub fn measure_field_id(self, input: impl Into<String>) -> Self
The measure field that is used in the contribution analysis.
This field is required.sourcepub fn set_measure_field_id(self, input: Option<String>) -> Self
pub fn set_measure_field_id(self, input: Option<String>) -> Self
The measure field that is used in the contribution analysis.
sourcepub fn get_measure_field_id(&self) -> &Option<String>
pub fn get_measure_field_id(&self) -> &Option<String>
The measure field that is used in the contribution analysis.
sourcepub fn contributor_dimensions(self, input: ColumnIdentifier) -> Self
pub fn contributor_dimensions(self, input: ColumnIdentifier) -> Self
Appends an item to contributor_dimensions
.
To override the contents of this collection use set_contributor_dimensions
.
The dimensions columns that are used in the contribution analysis, usually a list of ColumnIdentifiers
.
sourcepub fn set_contributor_dimensions(
self,
input: Option<Vec<ColumnIdentifier>>
) -> Self
pub fn set_contributor_dimensions( self, input: Option<Vec<ColumnIdentifier>> ) -> Self
The dimensions columns that are used in the contribution analysis, usually a list of ColumnIdentifiers
.
sourcepub fn get_contributor_dimensions(&self) -> &Option<Vec<ColumnIdentifier>>
pub fn get_contributor_dimensions(&self) -> &Option<Vec<ColumnIdentifier>>
The dimensions columns that are used in the contribution analysis, usually a list of ColumnIdentifiers
.
sourcepub fn build(self) -> Result<ContributionAnalysisDefault, BuildError>
pub fn build(self) -> Result<ContributionAnalysisDefault, BuildError>
Consumes the builder and constructs a ContributionAnalysisDefault
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ContributionAnalysisDefaultBuilder
impl Clone for ContributionAnalysisDefaultBuilder
source§fn clone(&self) -> ContributionAnalysisDefaultBuilder
fn clone(&self) -> ContributionAnalysisDefaultBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ContributionAnalysisDefaultBuilder
impl Default for ContributionAnalysisDefaultBuilder
source§fn default() -> ContributionAnalysisDefaultBuilder
fn default() -> ContributionAnalysisDefaultBuilder
source§impl PartialEq for ContributionAnalysisDefaultBuilder
impl PartialEq for ContributionAnalysisDefaultBuilder
source§fn eq(&self, other: &ContributionAnalysisDefaultBuilder) -> bool
fn eq(&self, other: &ContributionAnalysisDefaultBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContributionAnalysisDefaultBuilder
Auto Trait Implementations§
impl Freeze for ContributionAnalysisDefaultBuilder
impl RefUnwindSafe for ContributionAnalysisDefaultBuilder
impl Send for ContributionAnalysisDefaultBuilder
impl Sync for ContributionAnalysisDefaultBuilder
impl Unpin for ContributionAnalysisDefaultBuilder
impl UnwindSafe for ContributionAnalysisDefaultBuilder
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