#[non_exhaustive]pub struct ConditionalColumnSetValue {
pub value_transformation: Option<ValueTransformation>,
pub custom_features: Option<Struct>,
pub source_filter: Option<SourceFilter>,
/* private fields */
}Expand description
Options to configure rule type ConditionalColumnSetValue. The rule is used to transform the data which is being replicated/migrated.
The rule filter field can refer to one or more entities.
The rule scope can be one of: Column.
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.value_transformation: Option<ValueTransformation>Required. Description of data transformation during migration.
custom_features: Option<Struct>Optional. Custom engine specific features.
source_filter: Option<SourceFilter>Implementations§
Source§impl ConditionalColumnSetValue
impl ConditionalColumnSetValue
pub fn new() -> Self
Sourcepub fn set_value_transformation<T>(self, v: T) -> Selfwhere
T: Into<ValueTransformation>,
pub fn set_value_transformation<T>(self, v: T) -> Selfwhere
T: Into<ValueTransformation>,
Sets the value of value_transformation.
Sourcepub fn set_or_clear_value_transformation<T>(self, v: Option<T>) -> Selfwhere
T: Into<ValueTransformation>,
pub fn set_or_clear_value_transformation<T>(self, v: Option<T>) -> Selfwhere
T: Into<ValueTransformation>,
Sets or clears the value of value_transformation.
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 ConditionalColumnSetValue
impl Clone for ConditionalColumnSetValue
Source§fn clone(&self) -> ConditionalColumnSetValue
fn clone(&self) -> ConditionalColumnSetValue
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more