#[non_exhaustive]pub struct MultiColumnDatatypeChange {
pub source_data_type_filter: String,
pub new_data_type: String,
pub override_length: i64,
pub override_scale: i32,
pub override_precision: i32,
pub override_fractional_seconds_precision: i32,
pub custom_features: Option<Struct>,
pub source_filter: Option<SourceFilter>,
/* private fields */
}Expand description
Options to configure rule type MultiColumnDatatypeChange. The rule is used to change the data type and associated properties of multiple columns at once.
The rule filter field can refer to one or more entities.
The rule scope can be one of:Column.
This rule requires additional filters to be specified beyond the basic rule filter field, which is the source data type, but the rule supports additional filtering capabilities such as the minimum and maximum field length. All additional filters which are specified are required to be met in order for the rule to be applied (logical AND between the fields).
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.source_data_type_filter: StringRequired. Filter on source data type.
new_data_type: StringRequired. New data type.
override_length: i64Optional. Column length - e.g. varchar (50) - if not specified and relevant uses the source column length.
override_scale: i32Optional. Column scale - when relevant - if not specified and relevant uses the source column scale.
override_precision: i32Optional. Column precision - when relevant - if not specified and relevant uses the source column precision.
override_fractional_seconds_precision: i32Optional. Column fractional seconds precision - used only for timestamp based datatypes - if not specified and relevant uses the source column fractional seconds precision.
custom_features: Option<Struct>Optional. Custom engine specific features.
source_filter: Option<SourceFilter>Filter on source column parameters.
Implementations§
Source§impl MultiColumnDatatypeChange
impl MultiColumnDatatypeChange
pub fn new() -> Self
Sourcepub fn set_source_data_type_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_source_data_type_filter<T: Into<String>>(self, v: T) -> Self
Sets the value of source_data_type_filter.
Sourcepub fn set_new_data_type<T: Into<String>>(self, v: T) -> Self
pub fn set_new_data_type<T: Into<String>>(self, v: T) -> Self
Sets the value of new_data_type.
Sourcepub fn set_override_length<T: Into<i64>>(self, v: T) -> Self
pub fn set_override_length<T: Into<i64>>(self, v: T) -> Self
Sets the value of override_length.
Sourcepub fn set_override_scale<T: Into<i32>>(self, v: T) -> Self
pub fn set_override_scale<T: Into<i32>>(self, v: T) -> Self
Sets the value of override_scale.
Sourcepub fn set_override_precision<T: Into<i32>>(self, v: T) -> Self
pub fn set_override_precision<T: Into<i32>>(self, v: T) -> Self
Sets the value of override_precision.
Sourcepub fn set_override_fractional_seconds_precision<T: Into<i32>>(
self,
v: T,
) -> Self
pub fn set_override_fractional_seconds_precision<T: Into<i32>>( self, v: T, ) -> Self
Sets the value of override_fractional_seconds_precision.
Sourcepub fn set_custom_features<T>(self, v: T) -> Self
pub fn set_custom_features<T>(self, v: T) -> Self
Sets the value of custom_features.
Sourcepub fn set_or_clear_custom_features<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_custom_features<T>(self, v: Option<T>) -> Self
Sets or clears the value of custom_features.
Sourcepub fn set_source_filter<T: Into<Option<SourceFilter>>>(self, v: T) -> Self
pub fn set_source_filter<T: Into<Option<SourceFilter>>>(self, v: T) -> Self
Sets the value of source_filter.
Note that all the setters affecting source_filter are mutually
exclusive.
Sourcepub fn source_text_filter(&self) -> Option<&Box<SourceTextFilter>>
pub fn source_text_filter(&self) -> Option<&Box<SourceTextFilter>>
The value of source_filter
if it holds a SourceTextFilter, None if the field is not set or
holds a different branch.
Sourcepub fn set_source_text_filter<T: Into<Box<SourceTextFilter>>>(
self,
v: T,
) -> Self
pub fn set_source_text_filter<T: Into<Box<SourceTextFilter>>>( self, v: T, ) -> Self
Sets the value of source_filter
to hold a SourceTextFilter.
Note that all the setters affecting source_filter are
mutually exclusive.
Sourcepub fn source_numeric_filter(&self) -> Option<&Box<SourceNumericFilter>>
pub fn source_numeric_filter(&self) -> Option<&Box<SourceNumericFilter>>
The value of source_filter
if it holds a SourceNumericFilter, None if the field is not set or
holds a different branch.
Sourcepub fn set_source_numeric_filter<T: Into<Box<SourceNumericFilter>>>(
self,
v: T,
) -> Self
pub fn set_source_numeric_filter<T: Into<Box<SourceNumericFilter>>>( self, v: T, ) -> Self
Sets the value of source_filter
to hold a SourceNumericFilter.
Note that all the setters affecting source_filter are
mutually exclusive.
Trait Implementations§
Source§impl Clone for MultiColumnDatatypeChange
impl Clone for MultiColumnDatatypeChange
Source§fn clone(&self) -> MultiColumnDatatypeChange
fn clone(&self) -> MultiColumnDatatypeChange
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more