#[non_exhaustive]pub struct DataQualityResult {
pub passed: bool,
pub score: Option<f32>,
pub dimensions: Vec<DataQualityDimensionResult>,
pub columns: Vec<DataQualityColumnResult>,
pub rules: Vec<DataQualityRuleResult>,
pub row_count: i64,
pub scanned_data: Option<ScannedData>,
pub post_scan_actions_result: Option<PostScanActionsResult>,
pub catalog_publishing_status: Option<DataScanCatalogPublishingStatus>,
pub anomaly_detection_generated_assets: Option<AnomalyDetectionGeneratedAssets>,
/* private fields */
}Expand description
The output of a DataQualityScan.
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.passed: boolOutput only. Overall data quality result – true if all rules passed.
score: Option<f32>Output only. The overall data quality score.
The score ranges between [0, 100] (up to two decimal points).
dimensions: Vec<DataQualityDimensionResult>Output only. A list of results at the dimension level.
A dimension will have a corresponding DataQualityDimensionResult if and
only if there is at least one rule with the ‘dimension’ field set to it.
columns: Vec<DataQualityColumnResult>Output only. A list of results at the column level.
A column will have a corresponding DataQualityColumnResult if and only if
there is at least one rule with the ‘column’ field set to it.
rules: Vec<DataQualityRuleResult>Output only. A list of all the rules in a job, and their results.
row_count: i64Output only. The count of rows processed.
scanned_data: Option<ScannedData>Output only. The data scanned for this result.
post_scan_actions_result: Option<PostScanActionsResult>Output only. The result of post scan actions.
catalog_publishing_status: Option<DataScanCatalogPublishingStatus>Output only. The status of publishing the data scan as Dataplex Universal Catalog metadata.
anomaly_detection_generated_assets: Option<AnomalyDetectionGeneratedAssets>Output only. The generated assets for anomaly detection.
Implementations§
Source§impl DataQualityResult
impl DataQualityResult
Sourcepub fn set_passed<T: Into<bool>>(self, v: T) -> Self
pub fn set_passed<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_or_clear_score<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_score<T>(self, v: Option<T>) -> Self
Sourcepub fn set_dimensions<T, V>(self, v: T) -> Self
pub fn set_dimensions<T, V>(self, v: T) -> Self
Sets the value of dimensions.
§Example
use google_cloud_dataplex_v1::model::DataQualityDimensionResult;
let x = DataQualityResult::new()
.set_dimensions([
DataQualityDimensionResult::default()/* use setters */,
DataQualityDimensionResult::default()/* use (different) setters */,
]);Sourcepub fn set_columns<T, V>(self, v: T) -> Self
pub fn set_columns<T, V>(self, v: T) -> Self
Sourcepub fn set_row_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_row_count<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_scanned_data<T>(self, v: T) -> Selfwhere
T: Into<ScannedData>,
pub fn set_scanned_data<T>(self, v: T) -> Selfwhere
T: Into<ScannedData>,
Sets the value of scanned_data.
§Example
use google_cloud_dataplex_v1::model::ScannedData;
let x = DataQualityResult::new().set_scanned_data(ScannedData::default()/* use setters */);Sourcepub fn set_or_clear_scanned_data<T>(self, v: Option<T>) -> Selfwhere
T: Into<ScannedData>,
pub fn set_or_clear_scanned_data<T>(self, v: Option<T>) -> Selfwhere
T: Into<ScannedData>,
Sets or clears the value of scanned_data.
§Example
use google_cloud_dataplex_v1::model::ScannedData;
let x = DataQualityResult::new().set_or_clear_scanned_data(Some(ScannedData::default()/* use setters */));
let x = DataQualityResult::new().set_or_clear_scanned_data(None::<ScannedData>);Sourcepub fn set_post_scan_actions_result<T>(self, v: T) -> Selfwhere
T: Into<PostScanActionsResult>,
pub fn set_post_scan_actions_result<T>(self, v: T) -> Selfwhere
T: Into<PostScanActionsResult>,
Sets the value of post_scan_actions_result.
§Example
use google_cloud_dataplex_v1::model::data_quality_result::PostScanActionsResult;
let x = DataQualityResult::new().set_post_scan_actions_result(PostScanActionsResult::default()/* use setters */);Sourcepub fn set_or_clear_post_scan_actions_result<T>(self, v: Option<T>) -> Selfwhere
T: Into<PostScanActionsResult>,
pub fn set_or_clear_post_scan_actions_result<T>(self, v: Option<T>) -> Selfwhere
T: Into<PostScanActionsResult>,
Sets or clears the value of post_scan_actions_result.
§Example
use google_cloud_dataplex_v1::model::data_quality_result::PostScanActionsResult;
let x = DataQualityResult::new().set_or_clear_post_scan_actions_result(Some(PostScanActionsResult::default()/* use setters */));
let x = DataQualityResult::new().set_or_clear_post_scan_actions_result(None::<PostScanActionsResult>);Sourcepub fn set_catalog_publishing_status<T>(self, v: T) -> Selfwhere
T: Into<DataScanCatalogPublishingStatus>,
pub fn set_catalog_publishing_status<T>(self, v: T) -> Selfwhere
T: Into<DataScanCatalogPublishingStatus>,
Sets the value of catalog_publishing_status.
§Example
use google_cloud_dataplex_v1::model::DataScanCatalogPublishingStatus;
let x = DataQualityResult::new().set_catalog_publishing_status(DataScanCatalogPublishingStatus::default()/* use setters */);Sourcepub fn set_or_clear_catalog_publishing_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<DataScanCatalogPublishingStatus>,
pub fn set_or_clear_catalog_publishing_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<DataScanCatalogPublishingStatus>,
Sets or clears the value of catalog_publishing_status.
§Example
use google_cloud_dataplex_v1::model::DataScanCatalogPublishingStatus;
let x = DataQualityResult::new().set_or_clear_catalog_publishing_status(Some(DataScanCatalogPublishingStatus::default()/* use setters */));
let x = DataQualityResult::new().set_or_clear_catalog_publishing_status(None::<DataScanCatalogPublishingStatus>);Sourcepub fn set_anomaly_detection_generated_assets<T>(self, v: T) -> Selfwhere
T: Into<AnomalyDetectionGeneratedAssets>,
pub fn set_anomaly_detection_generated_assets<T>(self, v: T) -> Selfwhere
T: Into<AnomalyDetectionGeneratedAssets>,
Sets the value of anomaly_detection_generated_assets.
§Example
use google_cloud_dataplex_v1::model::data_quality_result::AnomalyDetectionGeneratedAssets;
let x = DataQualityResult::new().set_anomaly_detection_generated_assets(AnomalyDetectionGeneratedAssets::default()/* use setters */);Sourcepub fn set_or_clear_anomaly_detection_generated_assets<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<AnomalyDetectionGeneratedAssets>,
pub fn set_or_clear_anomaly_detection_generated_assets<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<AnomalyDetectionGeneratedAssets>,
Sets or clears the value of anomaly_detection_generated_assets.
§Example
use google_cloud_dataplex_v1::model::data_quality_result::AnomalyDetectionGeneratedAssets;
let x = DataQualityResult::new().set_or_clear_anomaly_detection_generated_assets(Some(AnomalyDetectionGeneratedAssets::default()/* use setters */));
let x = DataQualityResult::new().set_or_clear_anomaly_detection_generated_assets(None::<AnomalyDetectionGeneratedAssets>);Trait Implementations§
Source§impl Clone for DataQualityResult
impl Clone for DataQualityResult
Source§fn clone(&self) -> DataQualityResult
fn clone(&self) -> DataQualityResult
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 DataQualityResult
impl Debug for DataQualityResult
Source§impl Default for DataQualityResult
impl Default for DataQualityResult
Source§fn default() -> DataQualityResult
fn default() -> DataQualityResult
Source§impl Message for DataQualityResult
impl Message for DataQualityResult
Source§impl PartialEq for DataQualityResult
impl PartialEq for DataQualityResult
impl StructuralPartialEq for DataQualityResult
Auto Trait Implementations§
impl Freeze for DataQualityResult
impl RefUnwindSafe for DataQualityResult
impl Send for DataQualityResult
impl Sync for DataQualityResult
impl Unpin for DataQualityResult
impl UnsafeUnpin for DataQualityResult
impl UnwindSafe for DataQualityResult
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