#[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,
pub mode: Mode,
/* 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.
mode: ModeOptional. The execution mode for the profile scan.
Implementations§
Source§impl DataProfileSpec
impl DataProfileSpec
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.
§Example
let x = DataProfileSpec::new().set_sampling_percent(42.0);Sourcepub fn set_row_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_row_filter<T: Into<String>>(self, v: T) -> Self
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.
§Example
use google_cloud_dataplex_v1::model::data_profile_spec::PostScanActions;
let x = DataProfileSpec::new().set_post_scan_actions(PostScanActions::default()/* use setters */);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.
§Example
use google_cloud_dataplex_v1::model::data_profile_spec::PostScanActions;
let x = DataProfileSpec::new().set_or_clear_post_scan_actions(Some(PostScanActions::default()/* use setters */));
let x = DataProfileSpec::new().set_or_clear_post_scan_actions(None::<PostScanActions>);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.
§Example
use google_cloud_dataplex_v1::model::data_profile_spec::SelectedFields;
let x = DataProfileSpec::new().set_include_fields(SelectedFields::default()/* use setters */);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.
§Example
use google_cloud_dataplex_v1::model::data_profile_spec::SelectedFields;
let x = DataProfileSpec::new().set_or_clear_include_fields(Some(SelectedFields::default()/* use setters */));
let x = DataProfileSpec::new().set_or_clear_include_fields(None::<SelectedFields>);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.
§Example
use google_cloud_dataplex_v1::model::data_profile_spec::SelectedFields;
let x = DataProfileSpec::new().set_exclude_fields(SelectedFields::default()/* use setters */);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.
§Example
use google_cloud_dataplex_v1::model::data_profile_spec::SelectedFields;
let x = DataProfileSpec::new().set_or_clear_exclude_fields(Some(SelectedFields::default()/* use setters */));
let x = DataProfileSpec::new().set_or_clear_exclude_fields(None::<SelectedFields>);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.
§Example
let x = DataProfileSpec::new().set_catalog_publishing_enabled(true);Trait Implementations§
Source§impl Clone for DataProfileSpec
impl Clone for DataProfileSpec
Source§fn clone(&self) -> DataProfileSpec
fn clone(&self) -> DataProfileSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DataProfileSpec
impl Debug for DataProfileSpec
Source§impl Default for DataProfileSpec
impl Default for DataProfileSpec
Source§fn default() -> DataProfileSpec
fn default() -> DataProfileSpec
Source§impl Message for DataProfileSpec
impl Message for DataProfileSpec
Source§impl PartialEq for DataProfileSpec
impl PartialEq for DataProfileSpec
impl StructuralPartialEq for DataProfileSpec
Auto Trait Implementations§
impl Freeze for DataProfileSpec
impl RefUnwindSafe for DataProfileSpec
impl Send for DataProfileSpec
impl Sync for DataProfileSpec
impl Unpin for DataProfileSpec
impl UnsafeUnpin for DataProfileSpec
impl UnwindSafe for DataProfileSpec
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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