Struct google_api_proto::google::cloud::dataplex::v1::DataQualityRule
source · pub struct DataQualityRule {
pub column: String,
pub ignore_null: bool,
pub dimension: String,
pub threshold: f64,
pub name: String,
pub description: String,
pub rule_type: Option<RuleType>,
}
Expand description
A rule captures data quality intent about a data source.
Fields§
§column: String
Optional. The unnested column which this rule is evaluated against.
ignore_null: 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
dimension: 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”]
threshold: 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.
name: 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.
description: String
Optional. Description of the rule.
- The maximum length is 1,024 characters.
rule_type: Option<RuleType>
The rule-specific configuration.
Trait Implementations§
source§impl Clone for DataQualityRule
impl Clone for DataQualityRule
source§fn clone(&self) -> DataQualityRule
fn clone(&self) -> DataQualityRule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DataQualityRule
impl Debug for DataQualityRule
source§impl Default for DataQualityRule
impl Default for DataQualityRule
source§impl Message for DataQualityRule
impl Message for DataQualityRule
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for DataQualityRule
impl PartialEq for DataQualityRule
source§fn eq(&self, other: &DataQualityRule) -> bool
fn eq(&self, other: &DataQualityRule) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DataQualityRule
Auto Trait Implementations§
impl Freeze for DataQualityRule
impl RefUnwindSafe for DataQualityRule
impl Send for DataQualityRule
impl Sync for DataQualityRule
impl Unpin for DataQualityRule
impl UnwindSafe for DataQualityRule
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request