#[non_exhaustive]pub struct DataQualityResultV2ItemBuilder { /* private fields */ }Expand description
A builder for DataQualityResultV2Item.
Implementations§
Source§impl DataQualityResultV2ItemBuilder
impl DataQualityResultV2ItemBuilder
Sourcepub fn result_id(self, input: impl Into<String>) -> Self
pub fn result_id(self, input: impl Into<String>) -> Self
A unique result ID for the data quality result.
This field is required.Sourcepub fn set_result_id(self, input: Option<String>) -> Self
pub fn set_result_id(self, input: Option<String>) -> Self
A unique result ID for the data quality result.
Sourcepub fn get_result_id(&self) -> &Option<String>
pub fn get_result_id(&self) -> &Option<String>
A unique result ID for the data quality result.
Sourcepub fn data_source(self, input: DataSource) -> Self
pub fn data_source(self, input: DataSource) -> Self
The table associated with the data quality result, if any.
Sourcepub fn set_data_source(self, input: Option<DataSource>) -> Self
pub fn set_data_source(self, input: Option<DataSource>) -> Self
The table associated with the data quality result, if any.
Sourcepub fn get_data_source(&self) -> &Option<DataSource>
pub fn get_data_source(&self) -> &Option<DataSource>
The table associated with the data quality result, if any.
Sourcepub fn dimensions(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn dimensions(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to dimensions.
To override the contents of this collection use set_dimensions.
A map of platform-specific identifiers, such as cluster, application, workgroup, or project IDs, that identify where the data quality evaluation ran.
Sourcepub fn set_dimensions(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_dimensions(self, input: Option<HashMap<String, String>>) -> Self
A map of platform-specific identifiers, such as cluster, application, workgroup, or project IDs, that identify where the data quality evaluation ran.
Sourcepub fn get_dimensions(&self) -> &Option<HashMap<String, String>>
pub fn get_dimensions(&self) -> &Option<HashMap<String, String>>
A map of platform-specific identifiers, such as cluster, application, workgroup, or project IDs, that identify where the data quality evaluation ran.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
A map of tags associated with the data quality result.
A map of tags associated with the data quality result.
A map of tags associated with the data quality result.
Sourcepub fn execution_started_on(self, input: DateTime) -> Self
pub fn execution_started_on(self, input: DateTime) -> Self
The date and time when this data quality run started.
Sourcepub fn set_execution_started_on(self, input: Option<DateTime>) -> Self
pub fn set_execution_started_on(self, input: Option<DateTime>) -> Self
The date and time when this data quality run started.
Sourcepub fn get_execution_started_on(&self) -> &Option<DateTime>
pub fn get_execution_started_on(&self) -> &Option<DateTime>
The date and time when this data quality run started.
Sourcepub fn execution_completed_on(self, input: DateTime) -> Self
pub fn execution_completed_on(self, input: DateTime) -> Self
The date and time when this data quality run completed.
Sourcepub fn set_execution_completed_on(self, input: Option<DateTime>) -> Self
pub fn set_execution_completed_on(self, input: Option<DateTime>) -> Self
The date and time when this data quality run completed.
Sourcepub fn get_execution_completed_on(&self) -> &Option<DateTime>
pub fn get_execution_completed_on(&self) -> &Option<DateTime>
The date and time when this data quality run completed.
Sourcepub fn result_published_on(self, input: DateTime) -> Self
pub fn result_published_on(self, input: DateTime) -> Self
The date and time when this data quality result was published.
Sourcepub fn set_result_published_on(self, input: Option<DateTime>) -> Self
pub fn set_result_published_on(self, input: Option<DateTime>) -> Self
The date and time when this data quality result was published.
Sourcepub fn get_result_published_on(&self) -> &Option<DateTime>
pub fn get_result_published_on(&self) -> &Option<DateTime>
The date and time when this data quality result was published.
Sourcepub fn score(self, input: f64) -> Self
pub fn score(self, input: f64) -> Self
An aggregate data quality score. Represents the ratio of rules that passed to the total number of rules.
Sourcepub fn set_score(self, input: Option<f64>) -> Self
pub fn set_score(self, input: Option<f64>) -> Self
An aggregate data quality score. Represents the ratio of rules that passed to the total number of rules.
Sourcepub fn get_score(&self) -> &Option<f64>
pub fn get_score(&self) -> &Option<f64>
An aggregate data quality score. Represents the ratio of rules that passed to the total number of rules.
Sourcepub fn rule_results(self, input: DataQualityRuleResult) -> Self
pub fn rule_results(self, input: DataQualityRuleResult) -> Self
Appends an item to rule_results.
To override the contents of this collection use set_rule_results.
A list of DataQualityRuleResult objects representing the results for each rule.
Sourcepub fn set_rule_results(self, input: Option<Vec<DataQualityRuleResult>>) -> Self
pub fn set_rule_results(self, input: Option<Vec<DataQualityRuleResult>>) -> Self
A list of DataQualityRuleResult objects representing the results for each rule.
Sourcepub fn get_rule_results(&self) -> &Option<Vec<DataQualityRuleResult>>
pub fn get_rule_results(&self) -> &Option<Vec<DataQualityRuleResult>>
A list of DataQualityRuleResult objects representing the results for each rule.
Sourcepub fn analyzer_results(self, input: DataQualityAnalyzerResult) -> Self
pub fn analyzer_results(self, input: DataQualityAnalyzerResult) -> Self
Appends an item to analyzer_results.
To override the contents of this collection use set_analyzer_results.
A list of DataQualityAnalyzerResult objects representing the results for each analyzer.
Sourcepub fn set_analyzer_results(
self,
input: Option<Vec<DataQualityAnalyzerResult>>,
) -> Self
pub fn set_analyzer_results( self, input: Option<Vec<DataQualityAnalyzerResult>>, ) -> Self
A list of DataQualityAnalyzerResult objects representing the results for each analyzer.
Sourcepub fn get_analyzer_results(&self) -> &Option<Vec<DataQualityAnalyzerResult>>
pub fn get_analyzer_results(&self) -> &Option<Vec<DataQualityAnalyzerResult>>
A list of DataQualityAnalyzerResult objects representing the results for each analyzer.
Sourcepub fn observations(self, input: DataQualityObservation) -> Self
pub fn observations(self, input: DataQualityObservation) -> Self
Appends an item to observations.
To override the contents of this collection use set_observations.
A list of DataQualityObservation objects representing the anomaly detection observations generated after evaluating the rules and analyzers.
Sourcepub fn set_observations(
self,
input: Option<Vec<DataQualityObservation>>,
) -> Self
pub fn set_observations( self, input: Option<Vec<DataQualityObservation>>, ) -> Self
A list of DataQualityObservation objects representing the anomaly detection observations generated after evaluating the rules and analyzers.
Sourcepub fn get_observations(&self) -> &Option<Vec<DataQualityObservation>>
pub fn get_observations(&self) -> &Option<Vec<DataQualityObservation>>
A list of DataQualityObservation objects representing the anomaly detection observations generated after evaluating the rules and analyzers.
Sourcepub fn evaluation_context(self, input: impl Into<String>) -> Self
pub fn evaluation_context(self, input: impl Into<String>) -> Self
The evaluation context for the data quality result. This value identifies a specific data quality result, or a series of related results, within a run.
Sourcepub fn set_evaluation_context(self, input: Option<String>) -> Self
pub fn set_evaluation_context(self, input: Option<String>) -> Self
The evaluation context for the data quality result. This value identifies a specific data quality result, or a series of related results, within a run.
Sourcepub fn get_evaluation_context(&self) -> &Option<String>
pub fn get_evaluation_context(&self) -> &Option<String>
The evaluation context for the data quality result. This value identifies a specific data quality result, or a series of related results, within a run.
Sourcepub fn descriptors(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn descriptors(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to descriptors.
To override the contents of this collection use set_descriptors.
A map of user-provided descriptors that add contextual metadata and configuration to the data quality result, such as database name, table name, team, or environment.
Sourcepub fn set_descriptors(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_descriptors(self, input: Option<HashMap<String, String>>) -> Self
A map of user-provided descriptors that add contextual metadata and configuration to the data quality result, such as database name, table name, team, or environment.
Sourcepub fn get_descriptors(&self) -> &Option<HashMap<String, String>>
pub fn get_descriptors(&self) -> &Option<HashMap<String, String>>
A map of user-provided descriptors that add contextual metadata and configuration to the data quality result, such as database name, table name, team, or environment.
Sourcepub fn aggregated_metrics(self, input: DataQualityAggregatedMetrics) -> Self
pub fn aggregated_metrics(self, input: DataQualityAggregatedMetrics) -> Self
A summary of DataQualityAggregatedMetrics objects showing the total counts of processed rows and rules, including their pass/fail statistics based on row-level results.
Sourcepub fn set_aggregated_metrics(
self,
input: Option<DataQualityAggregatedMetrics>,
) -> Self
pub fn set_aggregated_metrics( self, input: Option<DataQualityAggregatedMetrics>, ) -> Self
A summary of DataQualityAggregatedMetrics objects showing the total counts of processed rows and rules, including their pass/fail statistics based on row-level results.
Sourcepub fn get_aggregated_metrics(&self) -> &Option<DataQualityAggregatedMetrics>
pub fn get_aggregated_metrics(&self) -> &Option<DataQualityAggregatedMetrics>
A summary of DataQualityAggregatedMetrics objects showing the total counts of processed rows and rules, including their pass/fail statistics based on row-level results.
Sourcepub fn ruleset_name(self, input: impl Into<String>) -> Self
pub fn ruleset_name(self, input: impl Into<String>) -> Self
The name of the ruleset associated with the data quality result.
Sourcepub fn set_ruleset_name(self, input: Option<String>) -> Self
pub fn set_ruleset_name(self, input: Option<String>) -> Self
The name of the ruleset associated with the data quality result.
Sourcepub fn get_ruleset_name(&self) -> &Option<String>
pub fn get_ruleset_name(&self) -> &Option<String>
The name of the ruleset associated with the data quality result.
Sourcepub fn build(self) -> Result<DataQualityResultV2Item, BuildError>
pub fn build(self) -> Result<DataQualityResultV2Item, BuildError>
Consumes the builder and constructs a DataQualityResultV2Item.
This method will fail if any of the following fields are not set:
Trait Implementations§
Source§impl Clone for DataQualityResultV2ItemBuilder
impl Clone for DataQualityResultV2ItemBuilder
Source§fn clone(&self) -> DataQualityResultV2ItemBuilder
fn clone(&self) -> DataQualityResultV2ItemBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for DataQualityResultV2ItemBuilder
impl Default for DataQualityResultV2ItemBuilder
Source§fn default() -> DataQualityResultV2ItemBuilder
fn default() -> DataQualityResultV2ItemBuilder
impl StructuralPartialEq for DataQualityResultV2ItemBuilder
Auto Trait Implementations§
impl Freeze for DataQualityResultV2ItemBuilder
impl RefUnwindSafe for DataQualityResultV2ItemBuilder
impl Send for DataQualityResultV2ItemBuilder
impl Sync for DataQualityResultV2ItemBuilder
impl Unpin for DataQualityResultV2ItemBuilder
impl UnsafeUnpin for DataQualityResultV2ItemBuilder
impl UnwindSafe for DataQualityResultV2ItemBuilder
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§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