#[non_exhaustive]pub struct DataScanJob {
pub name: String,
pub uid: String,
pub create_time: Option<Timestamp>,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub state: State,
pub message: String,
pub type: DataScanType,
pub spec: Option<Spec>,
pub result: Option<Result>,
/* private fields */
}Expand description
A DataScanJob represents an instance of DataScan execution.
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.name: StringOutput only. Identifier. The relative resource name of the DataScanJob, of
the form:
projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id},
where project refers to a project_id or project_number and
location_id refers to a Google Cloud region.
uid: StringOutput only. System generated globally unique ID for the DataScanJob.
create_time: Option<Timestamp>Output only. The time when the DataScanJob was created.
start_time: Option<Timestamp>Output only. The time when the DataScanJob was started.
end_time: Option<Timestamp>Output only. The time when the DataScanJob ended.
state: StateOutput only. Execution state for the DataScanJob.
message: StringOutput only. Additional information about the current state.
type: DataScanTypeOutput only. The type of the parent DataScan.
spec: Option<Spec>Data scan related setting.
result: Option<Result>The result of the data scan.
Implementations§
Source§impl DataScanJob
impl DataScanJob
pub fn new() -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sets the value of end_time.
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of end_time.
Sourcepub fn set_message<T: Into<String>>(self, v: T) -> Self
pub fn set_message<T: Into<String>>(self, v: T) -> Self
Sets the value of message.
Sourcepub fn set_type<T: Into<DataScanType>>(self, v: T) -> Self
pub fn set_type<T: Into<DataScanType>>(self, v: T) -> Self
Sets the value of r#type.
Sourcepub fn set_spec<T: Into<Option<Spec>>>(self, v: T) -> Self
pub fn set_spec<T: Into<Option<Spec>>>(self, v: T) -> Self
Sets the value of spec.
Note that all the setters affecting spec are mutually
exclusive.
Sourcepub fn data_quality_spec(&self) -> Option<&Box<DataQualitySpec>>
pub fn data_quality_spec(&self) -> Option<&Box<DataQualitySpec>>
The value of spec
if it holds a DataQualitySpec, None if the field is not set or
holds a different branch.
Sourcepub fn set_data_quality_spec<T: Into<Box<DataQualitySpec>>>(self, v: T) -> Self
pub fn set_data_quality_spec<T: Into<Box<DataQualitySpec>>>(self, v: T) -> Self
Sets the value of spec
to hold a DataQualitySpec.
Note that all the setters affecting spec are
mutually exclusive.
Sourcepub fn data_profile_spec(&self) -> Option<&Box<DataProfileSpec>>
pub fn data_profile_spec(&self) -> Option<&Box<DataProfileSpec>>
The value of spec
if it holds a DataProfileSpec, None if the field is not set or
holds a different branch.
Sourcepub fn set_data_profile_spec<T: Into<Box<DataProfileSpec>>>(self, v: T) -> Self
pub fn set_data_profile_spec<T: Into<Box<DataProfileSpec>>>(self, v: T) -> Self
Sets the value of spec
to hold a DataProfileSpec.
Note that all the setters affecting spec are
mutually exclusive.
Sourcepub fn data_discovery_spec(&self) -> Option<&Box<DataDiscoverySpec>>
pub fn data_discovery_spec(&self) -> Option<&Box<DataDiscoverySpec>>
The value of spec
if it holds a DataDiscoverySpec, None if the field is not set or
holds a different branch.
Sourcepub fn set_data_discovery_spec<T: Into<Box<DataDiscoverySpec>>>(
self,
v: T,
) -> Self
pub fn set_data_discovery_spec<T: Into<Box<DataDiscoverySpec>>>( self, v: T, ) -> Self
Sets the value of spec
to hold a DataDiscoverySpec.
Note that all the setters affecting spec are
mutually exclusive.
Sourcepub fn data_documentation_spec(&self) -> Option<&Box<DataDocumentationSpec>>
pub fn data_documentation_spec(&self) -> Option<&Box<DataDocumentationSpec>>
The value of spec
if it holds a DataDocumentationSpec, None if the field is not set or
holds a different branch.
Sourcepub fn set_data_documentation_spec<T: Into<Box<DataDocumentationSpec>>>(
self,
v: T,
) -> Self
pub fn set_data_documentation_spec<T: Into<Box<DataDocumentationSpec>>>( self, v: T, ) -> Self
Sets the value of spec
to hold a DataDocumentationSpec.
Note that all the setters affecting spec are
mutually exclusive.
Sourcepub fn set_result<T: Into<Option<Result>>>(self, v: T) -> Self
pub fn set_result<T: Into<Option<Result>>>(self, v: T) -> Self
Sets the value of result.
Note that all the setters affecting result are mutually
exclusive.
Sourcepub fn data_quality_result(&self) -> Option<&Box<DataQualityResult>>
pub fn data_quality_result(&self) -> Option<&Box<DataQualityResult>>
The value of result
if it holds a DataQualityResult, None if the field is not set or
holds a different branch.
Sourcepub fn set_data_quality_result<T: Into<Box<DataQualityResult>>>(
self,
v: T,
) -> Self
pub fn set_data_quality_result<T: Into<Box<DataQualityResult>>>( self, v: T, ) -> Self
Sets the value of result
to hold a DataQualityResult.
Note that all the setters affecting result are
mutually exclusive.
Sourcepub fn data_profile_result(&self) -> Option<&Box<DataProfileResult>>
pub fn data_profile_result(&self) -> Option<&Box<DataProfileResult>>
The value of result
if it holds a DataProfileResult, None if the field is not set or
holds a different branch.
Sourcepub fn set_data_profile_result<T: Into<Box<DataProfileResult>>>(
self,
v: T,
) -> Self
pub fn set_data_profile_result<T: Into<Box<DataProfileResult>>>( self, v: T, ) -> Self
Sets the value of result
to hold a DataProfileResult.
Note that all the setters affecting result are
mutually exclusive.
Sourcepub fn data_discovery_result(&self) -> Option<&Box<DataDiscoveryResult>>
pub fn data_discovery_result(&self) -> Option<&Box<DataDiscoveryResult>>
The value of result
if it holds a DataDiscoveryResult, None if the field is not set or
holds a different branch.
Sourcepub fn set_data_discovery_result<T: Into<Box<DataDiscoveryResult>>>(
self,
v: T,
) -> Self
pub fn set_data_discovery_result<T: Into<Box<DataDiscoveryResult>>>( self, v: T, ) -> Self
Sets the value of result
to hold a DataDiscoveryResult.
Note that all the setters affecting result are
mutually exclusive.
Sourcepub fn data_documentation_result(&self) -> Option<&Box<DataDocumentationResult>>
pub fn data_documentation_result(&self) -> Option<&Box<DataDocumentationResult>>
The value of result
if it holds a DataDocumentationResult, None if the field is not set or
holds a different branch.
Sourcepub fn set_data_documentation_result<T: Into<Box<DataDocumentationResult>>>(
self,
v: T,
) -> Self
pub fn set_data_documentation_result<T: Into<Box<DataDocumentationResult>>>( self, v: T, ) -> Self
Sets the value of result
to hold a DataDocumentationResult.
Note that all the setters affecting result are
mutually exclusive.
Trait Implementations§
Source§impl Clone for DataScanJob
impl Clone for DataScanJob
Source§fn clone(&self) -> DataScanJob
fn clone(&self) -> DataScanJob
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more