#[non_exhaustive]pub struct DataMaskingPolicy {
pub masking_expression: Option<MaskingExpression>,
/* private fields */
}Expand description
The data masking policy that is used to specify data masking rule.
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.masking_expression: Option<MaskingExpression>A masking expression to bind to the data masking rule.
Implementations§
Source§impl DataMaskingPolicy
impl DataMaskingPolicy
pub fn new() -> Self
Sourcepub fn set_masking_expression<T: Into<Option<MaskingExpression>>>(
self,
v: T,
) -> Self
pub fn set_masking_expression<T: Into<Option<MaskingExpression>>>( self, v: T, ) -> Self
Sets the value of masking_expression.
Note that all the setters affecting masking_expression are mutually
exclusive.
Sourcepub fn predefined_expression(&self) -> Option<&PredefinedExpression>
pub fn predefined_expression(&self) -> Option<&PredefinedExpression>
The value of masking_expression
if it holds a PredefinedExpression, None if the field is not set or
holds a different branch.
Sourcepub fn set_predefined_expression<T: Into<PredefinedExpression>>(
self,
v: T,
) -> Self
pub fn set_predefined_expression<T: Into<PredefinedExpression>>( self, v: T, ) -> Self
Sets the value of masking_expression
to hold a PredefinedExpression.
Note that all the setters affecting masking_expression are
mutually exclusive.
Sourcepub fn routine(&self) -> Option<&String>
pub fn routine(&self) -> Option<&String>
The value of masking_expression
if it holds a Routine, None if the field is not set or
holds a different branch.
Sourcepub fn set_routine<T: Into<String>>(self, v: T) -> Self
pub fn set_routine<T: Into<String>>(self, v: T) -> Self
Sets the value of masking_expression
to hold a Routine.
Note that all the setters affecting masking_expression are
mutually exclusive.
Trait Implementations§
Source§impl Clone for DataMaskingPolicy
impl Clone for DataMaskingPolicy
Source§fn clone(&self) -> DataMaskingPolicy
fn clone(&self) -> DataMaskingPolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more