pub struct DataScan {Show 14 fields
pub name: String,
pub uid: String,
pub description: String,
pub display_name: String,
pub labels: HashMap<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: StringOutput 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: StringOutput 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: StringOptional. Description of the scan.
- Must be between 1-1024 characters.
display_name: StringOptional. User friendly display name.
- Must be between 1-256 characters.
labels: HashMap<String, String>Optional. User-defined labels for the scan.
state: i32Output 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: i32Output 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<'de> Deserialize<'de> for DataScan
impl<'de> Deserialize<'de> for DataScan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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.