#[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 ==
.