#[non_exhaustive]pub struct DataMaskingPolicy {
pub masking_expression: Option<MaskingExpression>,
/* private fields */
}Expand description
The policy used to specify data masking rule.
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.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
Returns a duplicate of the value. Read more
1.0.0 · 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 DataMaskingPolicy
impl Debug for DataMaskingPolicy
Source§impl Default for DataMaskingPolicy
impl Default for DataMaskingPolicy
Source§fn default() -> DataMaskingPolicy
fn default() -> DataMaskingPolicy
Returns the “default value” for a type. Read more
Source§impl Message for DataMaskingPolicy
impl Message for DataMaskingPolicy
Source§impl PartialEq for DataMaskingPolicy
impl PartialEq for DataMaskingPolicy
impl StructuralPartialEq for DataMaskingPolicy
Auto Trait Implementations§
impl Freeze for DataMaskingPolicy
impl RefUnwindSafe for DataMaskingPolicy
impl Send for DataMaskingPolicy
impl Sync for DataMaskingPolicy
impl Unpin for DataMaskingPolicy
impl UnwindSafe for DataMaskingPolicy
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