#[non_exhaustive]pub struct DataQualitySpec {
pub rules: Vec<DataQualityRule>,
pub sampling_percent: f32,
pub row_filter: String,
pub post_scan_actions: Option<PostScanActions>,
pub catalog_publishing_enabled: bool,
/* private fields */
}Expand description
DataQualityScan related setting.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rules: Vec<DataQualityRule>Required. The list of rules to evaluate against a data source. At least one rule is required.
sampling_percent: f32Optional. The percentage of the records to be selected from the dataset for DataScan.
- Value can range between 0.0 and 100.0 with up to 3 significant decimal digits.
- Sampling is not applied if
sampling_percentis not specified, 0 or
row_filter: StringOptional. A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in GoogleSQL syntax.
Example: col1 >= 0 AND col2 < 10
post_scan_actions: Option<PostScanActions>Optional. Actions to take upon job completion.
catalog_publishing_enabled: boolOptional. If set, the latest DataScan job result will be published as Dataplex Universal Catalog metadata.
Implementations§
Source§impl DataQualitySpec
impl DataQualitySpec
pub fn new() -> Self
Sourcepub fn set_sampling_percent<T: Into<f32>>(self, v: T) -> Self
pub fn set_sampling_percent<T: Into<f32>>(self, v: T) -> Self
Sets the value of sampling_percent.
Sourcepub fn set_row_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_row_filter<T: Into<String>>(self, v: T) -> Self
Sets the value of row_filter.
Sourcepub fn set_post_scan_actions<T>(self, v: T) -> Selfwhere
T: Into<PostScanActions>,
pub fn set_post_scan_actions<T>(self, v: T) -> Selfwhere
T: Into<PostScanActions>,
Sets the value of post_scan_actions.
Sourcepub fn set_or_clear_post_scan_actions<T>(self, v: Option<T>) -> Selfwhere
T: Into<PostScanActions>,
pub fn set_or_clear_post_scan_actions<T>(self, v: Option<T>) -> Selfwhere
T: Into<PostScanActions>,
Sets or clears the value of post_scan_actions.
Sourcepub fn set_catalog_publishing_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_catalog_publishing_enabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of catalog_publishing_enabled.
Trait Implementations§
Source§impl Clone for DataQualitySpec
impl Clone for DataQualitySpec
Source§fn clone(&self) -> DataQualitySpec
fn clone(&self) -> DataQualitySpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DataQualitySpec
impl Debug for DataQualitySpec
Source§impl Default for DataQualitySpec
impl Default for DataQualitySpec
Source§fn default() -> DataQualitySpec
fn default() -> DataQualitySpec
Returns the “default value” for a type. Read more
Source§impl Message for DataQualitySpec
impl Message for DataQualitySpec
Source§impl PartialEq for DataQualitySpec
impl PartialEq for DataQualitySpec
impl StructuralPartialEq for DataQualitySpec
Auto Trait Implementations§
impl Freeze for DataQualitySpec
impl RefUnwindSafe for DataQualitySpec
impl Send for DataQualitySpec
impl Sync for DataQualitySpec
impl Unpin for DataQualitySpec
impl UnwindSafe for DataQualitySpec
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
Mutably borrows from an owned value. Read more