pub struct GoogleCloudDataplexV1DataQualityRule {Show 15 fields
pub column: Option<String>,
pub description: Option<String>,
pub dimension: Option<String>,
pub ignore_null: Option<bool>,
pub name: Option<String>,
pub non_null_expectation: Option<GoogleCloudDataplexV1DataQualityRuleNonNullExpectation>,
pub range_expectation: Option<GoogleCloudDataplexV1DataQualityRuleRangeExpectation>,
pub regex_expectation: Option<GoogleCloudDataplexV1DataQualityRuleRegexExpectation>,
pub row_condition_expectation: Option<GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation>,
pub set_expectation: Option<GoogleCloudDataplexV1DataQualityRuleSetExpectation>,
pub sql_assertion: Option<GoogleCloudDataplexV1DataQualityRuleSqlAssertion>,
pub statistic_range_expectation: Option<GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation>,
pub table_condition_expectation: Option<GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation>,
pub threshold: Option<f64>,
pub uniqueness_expectation: Option<GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation>,
}
Expand description
A rule captures data quality intent about a data source.
This type is not used in any activity, and only used as part of another schema.
Fields§
§column: Option<String>
Optional. The unnested column which this rule is evaluated against.
description: Option<String>
Optional. Description of the rule. The maximum length is 1,024 characters.
dimension: Option<String>
Required. The dimension a rule belongs to. Results are also aggregated at the dimension level. Supported dimensions are “COMPLETENESS”, “ACCURACY”, “CONSISTENCY”, “VALIDITY”, “UNIQUENESS”, “INTEGRITY”
ignore_null: Option<bool>
Optional. Rows with null values will automatically fail a rule, unless ignore_null is true. In that case, such null rows are trivially considered passing.This field is only valid for the following type of rules: RangeExpectation RegexExpectation SetExpectation UniquenessExpectation
name: Option<String>
Optional. A mutable name for the rule. The name must contain only letters (a-z, A-Z), numbers (0-9), or hyphens (-). The maximum length is 63 characters. Must start with a letter. Must end with a number or a letter.
non_null_expectation: Option<GoogleCloudDataplexV1DataQualityRuleNonNullExpectation>
Row-level rule which evaluates whether each column value is null.
range_expectation: Option<GoogleCloudDataplexV1DataQualityRuleRangeExpectation>
Row-level rule which evaluates whether each column value lies between a specified range.
regex_expectation: Option<GoogleCloudDataplexV1DataQualityRuleRegexExpectation>
Row-level rule which evaluates whether each column value matches a specified regex.
row_condition_expectation: Option<GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation>
Row-level rule which evaluates whether each row in a table passes the specified condition.
set_expectation: Option<GoogleCloudDataplexV1DataQualityRuleSetExpectation>
Row-level rule which evaluates whether each column value is contained by a specified set.
sql_assertion: Option<GoogleCloudDataplexV1DataQualityRuleSqlAssertion>
Aggregate rule which evaluates the number of rows returned for the provided statement. If any rows are returned, this rule fails.
statistic_range_expectation: Option<GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation>
Aggregate rule which evaluates whether the column aggregate statistic lies between a specified range.
table_condition_expectation: Option<GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation>
Aggregate rule which evaluates whether the provided expression is true for a table.
threshold: Option<f64>
Optional. The minimum ratio of passing_rows / total_rows required to pass this rule, with a range of 0.0, 1.0.0 indicates default value (i.e. 1.0).This field is only valid for row-level type rules.
uniqueness_expectation: Option<GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation>
Row-level rule which evaluates whether each column value is unique.
Trait Implementations§
Source§impl Clone for GoogleCloudDataplexV1DataQualityRule
impl Clone for GoogleCloudDataplexV1DataQualityRule
Source§fn clone(&self) -> GoogleCloudDataplexV1DataQualityRule
fn clone(&self) -> GoogleCloudDataplexV1DataQualityRule
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for GoogleCloudDataplexV1DataQualityRule
impl Default for GoogleCloudDataplexV1DataQualityRule
Source§fn default() -> GoogleCloudDataplexV1DataQualityRule
fn default() -> GoogleCloudDataplexV1DataQualityRule
Source§impl<'de> Deserialize<'de> for GoogleCloudDataplexV1DataQualityRule
impl<'de> Deserialize<'de> for GoogleCloudDataplexV1DataQualityRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for GoogleCloudDataplexV1DataQualityRule
Auto Trait Implementations§
impl Freeze for GoogleCloudDataplexV1DataQualityRule
impl RefUnwindSafe for GoogleCloudDataplexV1DataQualityRule
impl Send for GoogleCloudDataplexV1DataQualityRule
impl Sync for GoogleCloudDataplexV1DataQualityRule
impl Unpin for GoogleCloudDataplexV1DataQualityRule
impl UnwindSafe for GoogleCloudDataplexV1DataQualityRule
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