#[non_exhaustive]pub struct ValueTransformation {
pub filter: Option<Filter>,
pub action: Option<Action>,
/* private fields */
}Expand description
Description of data transformation during migration as part of the ConditionalColumnSetValue.
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.filter: Option<Filter>§action: Option<Action>Implementations§
Source§impl ValueTransformation
impl ValueTransformation
pub fn new() -> Self
Sourcepub fn set_filter<T: Into<Option<Filter>>>(self, v: T) -> Self
pub fn set_filter<T: Into<Option<Filter>>>(self, v: T) -> Self
Sets the value of filter.
Note that all the setters affecting filter are mutually
exclusive.
Sourcepub fn is_null(&self) -> Option<&Box<Empty>>
pub fn is_null(&self) -> Option<&Box<Empty>>
The value of filter
if it holds a IsNull, None if the field is not set or
holds a different branch.
Sourcepub fn set_is_null<T: Into<Box<Empty>>>(self, v: T) -> Self
pub fn set_is_null<T: Into<Box<Empty>>>(self, v: T) -> Self
Sets the value of filter
to hold a IsNull.
Note that all the setters affecting filter are
mutually exclusive.
Sourcepub fn value_list(&self) -> Option<&Box<ValueListFilter>>
pub fn value_list(&self) -> Option<&Box<ValueListFilter>>
The value of filter
if it holds a ValueList, None if the field is not set or
holds a different branch.
Sourcepub fn set_value_list<T: Into<Box<ValueListFilter>>>(self, v: T) -> Self
pub fn set_value_list<T: Into<Box<ValueListFilter>>>(self, v: T) -> Self
Sets the value of filter
to hold a ValueList.
Note that all the setters affecting filter are
mutually exclusive.
Sourcepub fn int_comparison(&self) -> Option<&Box<IntComparisonFilter>>
pub fn int_comparison(&self) -> Option<&Box<IntComparisonFilter>>
The value of filter
if it holds a IntComparison, None if the field is not set or
holds a different branch.
Sourcepub fn set_int_comparison<T: Into<Box<IntComparisonFilter>>>(self, v: T) -> Self
pub fn set_int_comparison<T: Into<Box<IntComparisonFilter>>>(self, v: T) -> Self
Sets the value of filter
to hold a IntComparison.
Note that all the setters affecting filter are
mutually exclusive.
Sourcepub fn double_comparison(&self) -> Option<&Box<DoubleComparisonFilter>>
pub fn double_comparison(&self) -> Option<&Box<DoubleComparisonFilter>>
The value of filter
if it holds a DoubleComparison, None if the field is not set or
holds a different branch.
Sourcepub fn set_double_comparison<T: Into<Box<DoubleComparisonFilter>>>(
self,
v: T,
) -> Self
pub fn set_double_comparison<T: Into<Box<DoubleComparisonFilter>>>( self, v: T, ) -> Self
Sets the value of filter
to hold a DoubleComparison.
Note that all the setters affecting filter are
mutually exclusive.
Sourcepub fn set_action<T: Into<Option<Action>>>(self, v: T) -> Self
pub fn set_action<T: Into<Option<Action>>>(self, v: T) -> Self
Sets the value of action.
Note that all the setters affecting action are mutually
exclusive.
Sourcepub fn assign_null(&self) -> Option<&Box<Empty>>
pub fn assign_null(&self) -> Option<&Box<Empty>>
The value of action
if it holds a AssignNull, None if the field is not set or
holds a different branch.
Sourcepub fn set_assign_null<T: Into<Box<Empty>>>(self, v: T) -> Self
pub fn set_assign_null<T: Into<Box<Empty>>>(self, v: T) -> Self
Sets the value of action
to hold a AssignNull.
Note that all the setters affecting action are
mutually exclusive.
Sourcepub fn assign_specific_value(&self) -> Option<&Box<AssignSpecificValue>>
pub fn assign_specific_value(&self) -> Option<&Box<AssignSpecificValue>>
The value of action
if it holds a AssignSpecificValue, None if the field is not set or
holds a different branch.
Sourcepub fn set_assign_specific_value<T: Into<Box<AssignSpecificValue>>>(
self,
v: T,
) -> Self
pub fn set_assign_specific_value<T: Into<Box<AssignSpecificValue>>>( self, v: T, ) -> Self
Sets the value of action
to hold a AssignSpecificValue.
Note that all the setters affecting action are
mutually exclusive.
Sourcepub fn assign_min_value(&self) -> Option<&Box<Empty>>
pub fn assign_min_value(&self) -> Option<&Box<Empty>>
The value of action
if it holds a AssignMinValue, None if the field is not set or
holds a different branch.
Sourcepub fn set_assign_min_value<T: Into<Box<Empty>>>(self, v: T) -> Self
pub fn set_assign_min_value<T: Into<Box<Empty>>>(self, v: T) -> Self
Sets the value of action
to hold a AssignMinValue.
Note that all the setters affecting action are
mutually exclusive.
Sourcepub fn assign_max_value(&self) -> Option<&Box<Empty>>
pub fn assign_max_value(&self) -> Option<&Box<Empty>>
The value of action
if it holds a AssignMaxValue, None if the field is not set or
holds a different branch.
Sourcepub fn set_assign_max_value<T: Into<Box<Empty>>>(self, v: T) -> Self
pub fn set_assign_max_value<T: Into<Box<Empty>>>(self, v: T) -> Self
Sets the value of action
to hold a AssignMaxValue.
Note that all the setters affecting action are
mutually exclusive.
Sourcepub fn round_scale(&self) -> Option<&Box<RoundToScale>>
pub fn round_scale(&self) -> Option<&Box<RoundToScale>>
The value of action
if it holds a RoundScale, None if the field is not set or
holds a different branch.
Sourcepub fn set_round_scale<T: Into<Box<RoundToScale>>>(self, v: T) -> Self
pub fn set_round_scale<T: Into<Box<RoundToScale>>>(self, v: T) -> Self
Sets the value of action
to hold a RoundScale.
Note that all the setters affecting action are
mutually exclusive.
Trait Implementations§
Source§impl Clone for ValueTransformation
impl Clone for ValueTransformation
Source§fn clone(&self) -> ValueTransformation
fn clone(&self) -> ValueTransformation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more