#[non_exhaustive]pub struct DataQualityRuleTemplate {
pub name: String,
pub dimension: String,
pub sql_collection: Vec<Sql>,
pub input_parameters: HashMap<String, ParameterDescription>,
pub capabilities: Vec<String>,
/* private fields */
}Expand description
DataQualityRuleTemplate represents a template which can be reused across multiple data quality rules.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. The name of the rule template in the format:
projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}
dimension: StringOutput only. The dimension a rule template belongs to. Rule level results are also aggregated at the dimension level.
sql_collection: Vec<Sql>Output only. Collection of SQLs for data quality rules. Currently only one SQL is supported.
input_parameters: HashMap<String, ParameterDescription>Output only. Description for input parameters
capabilities: Vec<String>Output only. A list of features or properties supported by this rule template.
Implementations§
Source§impl DataQualityRuleTemplate
impl DataQualityRuleTemplate
Sourcepub fn set_dimension<T: Into<String>>(self, v: T) -> Self
pub fn set_dimension<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_sql_collection<T, V>(self, v: T) -> Self
pub fn set_sql_collection<T, V>(self, v: T) -> Self
Sets the value of sql_collection.
§Example
ⓘ
use google_cloud_dataplex_v1::model::data_quality_rule_template::Sql;
let x = DataQualityRuleTemplate::new()
.set_sql_collection([
Sql::default()/* use setters */,
Sql::default()/* use (different) setters */,
]);Sourcepub fn set_input_parameters<T, K, V>(self, v: T) -> Self
pub fn set_input_parameters<T, K, V>(self, v: T) -> Self
Sets the value of input_parameters.
§Example
ⓘ
use google_cloud_dataplex_v1::model::data_quality_rule_template::ParameterDescription;
let x = DataQualityRuleTemplate::new().set_input_parameters([
("key0", ParameterDescription::default()/* use setters */),
("key1", ParameterDescription::default()/* use (different) setters */),
]);Sourcepub fn set_capabilities<T, V>(self, v: T) -> Self
pub fn set_capabilities<T, V>(self, v: T) -> Self
Sets the value of capabilities.
§Example
ⓘ
let x = DataQualityRuleTemplate::new().set_capabilities(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for DataQualityRuleTemplate
impl Clone for DataQualityRuleTemplate
Source§fn clone(&self) -> DataQualityRuleTemplate
fn clone(&self) -> DataQualityRuleTemplate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DataQualityRuleTemplate
impl Debug for DataQualityRuleTemplate
Source§impl Default for DataQualityRuleTemplate
impl Default for DataQualityRuleTemplate
Source§fn default() -> DataQualityRuleTemplate
fn default() -> DataQualityRuleTemplate
Returns the “default value” for a type. Read more
Source§impl Message for DataQualityRuleTemplate
impl Message for DataQualityRuleTemplate
Source§impl PartialEq for DataQualityRuleTemplate
impl PartialEq for DataQualityRuleTemplate
impl StructuralPartialEq for DataQualityRuleTemplate
Auto Trait Implementations§
impl Freeze for DataQualityRuleTemplate
impl RefUnwindSafe for DataQualityRuleTemplate
impl Send for DataQualityRuleTemplate
impl Sync for DataQualityRuleTemplate
impl Unpin for DataQualityRuleTemplate
impl UnsafeUnpin for DataQualityRuleTemplate
impl UnwindSafe for DataQualityRuleTemplate
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
Mutably borrows from an owned value. Read more
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>
Wrap the input message
T in a tonic::Request