Struct google_api_proto::google::cloud::dataplex::v1::data_quality_rule::StatisticRangeExpectation
source · pub struct StatisticRangeExpectation {
pub statistic: i32,
pub min_value: String,
pub max_value: String,
pub strict_min_enabled: bool,
pub strict_max_enabled: bool,
}
Expand description
Evaluates whether the column aggregate statistic lies between a specified range.
Fields§
§statistic: i32
Optional. The aggregate metric to evaluate.
min_value: String
Optional. The minimum column statistic value allowed for a row to pass this validation.
At least one of min_value
and max_value
need to be provided.
max_value: String
Optional. The maximum column statistic value allowed for a row to pass this validation.
At least one of min_value
and max_value
need to be provided.
strict_min_enabled: bool
Optional. Whether column statistic needs to be strictly greater than (‘>’) the minimum, or if equality is allowed.
Only relevant if a min_value
has been defined. Default = false.
strict_max_enabled: bool
Optional. Whether column statistic needs to be strictly lesser than (‘<’) the maximum, or if equality is allowed.
Only relevant if a max_value
has been defined. Default = false.
Implementations§
source§impl StatisticRangeExpectation
impl StatisticRangeExpectation
sourcepub fn statistic(&self) -> ColumnStatistic
pub fn statistic(&self) -> ColumnStatistic
Returns the enum value of statistic
, or the default if the field is set to an invalid enum value.
sourcepub fn set_statistic(&mut self, value: ColumnStatistic)
pub fn set_statistic(&mut self, value: ColumnStatistic)
Sets statistic
to the provided enum value.
Trait Implementations§
source§impl Clone for StatisticRangeExpectation
impl Clone for StatisticRangeExpectation
source§fn clone(&self) -> StatisticRangeExpectation
fn clone(&self) -> StatisticRangeExpectation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StatisticRangeExpectation
impl Debug for StatisticRangeExpectation
source§impl Default for StatisticRangeExpectation
impl Default for StatisticRangeExpectation
source§impl Message for StatisticRangeExpectation
impl Message for StatisticRangeExpectation
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 StatisticRangeExpectation
impl PartialEq for StatisticRangeExpectation
source§fn eq(&self, other: &StatisticRangeExpectation) -> bool
fn eq(&self, other: &StatisticRangeExpectation) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StatisticRangeExpectation
Auto Trait Implementations§
impl Freeze for StatisticRangeExpectation
impl RefUnwindSafe for StatisticRangeExpectation
impl Send for StatisticRangeExpectation
impl Sync for StatisticRangeExpectation
impl Unpin for StatisticRangeExpectation
impl UnwindSafe for StatisticRangeExpectation
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