#[non_exhaustive]pub struct DataProfileSpec {
pub sampling_percent: f32,
pub row_filter: String,
pub post_scan_actions: Option<PostScanActions>,
pub include_fields: Option<SelectedFields>,
pub exclude_fields: Option<SelectedFields>,
pub catalog_publishing_enabled: bool,
/* private fields */
}Expand description
DataProfileScan related setting.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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 BigQuery standard SQL syntax. Example: col1 >= 0 AND col2 < 10
post_scan_actions: Option<PostScanActions>Optional. Actions to take upon job completion..
include_fields: Option<SelectedFields>Optional. The fields to include in data profile.
If not specified, all fields at the time of profile scan job execution are
included, except for ones listed in exclude_fields.
exclude_fields: Option<SelectedFields>Optional. The fields to exclude from data profile.
If specified, the fields will be excluded from data profile, regardless of
include_fields value.
catalog_publishing_enabled: boolOptional. If set, the latest DataScan job result will be published as Dataplex Universal Catalog metadata.
Implementations§
Source§impl DataProfileSpec
impl DataProfileSpec
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_include_fields<T>(self, v: T) -> Selfwhere
T: Into<SelectedFields>,
pub fn set_include_fields<T>(self, v: T) -> Selfwhere
T: Into<SelectedFields>,
Sets the value of include_fields.
Sourcepub fn set_or_clear_include_fields<T>(self, v: Option<T>) -> Selfwhere
T: Into<SelectedFields>,
pub fn set_or_clear_include_fields<T>(self, v: Option<T>) -> Selfwhere
T: Into<SelectedFields>,
Sets or clears the value of include_fields.
Sourcepub fn set_exclude_fields<T>(self, v: T) -> Selfwhere
T: Into<SelectedFields>,
pub fn set_exclude_fields<T>(self, v: T) -> Selfwhere
T: Into<SelectedFields>,
Sets the value of exclude_fields.
Sourcepub fn set_or_clear_exclude_fields<T>(self, v: Option<T>) -> Selfwhere
T: Into<SelectedFields>,
pub fn set_or_clear_exclude_fields<T>(self, v: Option<T>) -> Selfwhere
T: Into<SelectedFields>,
Sets or clears the value of exclude_fields.
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 DataProfileSpec
impl Clone for DataProfileSpec
Source§fn clone(&self) -> DataProfileSpec
fn clone(&self) -> DataProfileSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more