pub struct DataScan {Show 14 fields
pub name: String,
pub uid: String,
pub description: String,
pub display_name: String,
pub labels: BTreeMap<String, String>,
pub state: i32,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub data: Option<DataSource>,
pub execution_spec: Option<ExecutionSpec>,
pub execution_status: Option<ExecutionStatus>,
pub type: i32,
pub spec: Option<Spec>,
pub result: Option<Result>,
}
Expand description
Represents a user-visible job which provides the insights for the related data source.
For example:
- Data Quality: generates queries based on the rules and runs against the data to get data quality check results.
- Data Profile: analyzes the data in table(s) and generates insights about the structure, content and relationships (such as null percent, cardinality, min/max/mean, etc).
Fields§
§name: String
Output only. The relative resource name of the scan, of the form:
projects/{project}/locations/{location_id}/dataScans/{datascan_id}
,
where project
refers to a project_id or project_number and
location_id
refers to a GCP region.
uid: String
Output only. System generated globally unique ID for the scan. This ID will be different if the scan is deleted and re-created with the same name.
description: String
Optional. Description of the scan.
- Must be between 1-1024 characters.
display_name: String
Optional. User friendly display name.
- Must be between 1-256 characters.
labels: BTreeMap<String, String>
Optional. User-defined labels for the scan.
state: i32
Output only. Current state of the DataScan.
create_time: Option<Timestamp>
Output only. The time when the scan was created.
update_time: Option<Timestamp>
Output only. The time when the scan was last updated.
data: Option<DataSource>
Required. The data source for DataScan.
execution_spec: Option<ExecutionSpec>
Optional. DataScan execution settings.
If not specified, the fields in it will use their default values.
execution_status: Option<ExecutionStatus>
Output only. Status of the data scan execution.
type: i32
Output only. The type of DataScan.
spec: Option<Spec>
Data Scan related setting. It is required and immutable which means once data_quality_spec is set, it cannot be changed to data_profile_spec.
result: Option<Result>
The result of the data scan.
Implementations§
source§impl DataScan
impl DataScan
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn type(&self) -> DataScanType
pub fn type(&self) -> DataScanType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: DataScanType)
pub fn set_type(&mut self, value: DataScanType)
Sets type
to the provided enum value.
Trait Implementations§
source§impl Message for DataScan
impl Message for DataScan
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 DataScan
impl PartialEq for DataScan
impl StructuralPartialEq for DataScan
Auto Trait Implementations§
impl Freeze for DataScan
impl RefUnwindSafe for DataScan
impl Send for DataScan
impl Sync for DataScan
impl Unpin for DataScan
impl UnwindSafe for DataScan
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