#[repr(i32)]pub enum RuleType {
Unspecified = 0,
NonNullExpectation = 1,
RangeExpectation = 2,
RegexExpectation = 3,
RowConditionExpectation = 4,
SetExpectation = 5,
StatisticRangeExpectation = 6,
TableConditionExpectation = 7,
UniquenessExpectation = 8,
SqlAssertion = 9,
}
Expand description
The type of the data quality rule.
Variants§
Unspecified = 0
An unspecified rule type.
NonNullExpectation = 1
Please see https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#nonnullexpectation.
RangeExpectation = 2
Please see https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#rangeexpectation.
RegexExpectation = 3
Please see https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#regexexpectation.
RowConditionExpectation = 4
Please see https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#rowconditionexpectation.
SetExpectation = 5
StatisticRangeExpectation = 6
Please see https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#statisticrangeexpectation.
TableConditionExpectation = 7
Please see https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#tableconditionexpectation.
UniquenessExpectation = 8
Please see https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#uniquenessexpectation.
SqlAssertion = 9
Implementations§
source§impl RuleType
impl RuleType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for RuleType
impl Ord for RuleType
source§impl PartialEq for RuleType
impl PartialEq for RuleType
source§impl PartialOrd for RuleType
impl PartialOrd for RuleType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for RuleType
impl TryFrom<i32> for RuleType
§type Error = DecodeError
type Error = DecodeError
impl Copy for RuleType
impl Eq for RuleType
impl StructuralPartialEq for RuleType
Auto Trait Implementations§
impl Freeze for RuleType
impl RefUnwindSafe for RuleType
impl Send for RuleType
impl Sync for RuleType
impl Unpin for RuleType
impl UnwindSafe for RuleType
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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