pub struct DataMask {
pub table: String,
pub column: String,
pub mask_function: MaskFunction,
}Expand description
Data masking configuration.
Fields§
§table: StringTable name.
column: StringColumn name.
mask_function: MaskFunctionMasking function.
Implementations§
Source§impl DataMask
impl DataMask
Sourcepub fn new(
table: impl Into<String>,
column: impl Into<String>,
mask: MaskFunction,
) -> Self
pub fn new( table: impl Into<String>, column: impl Into<String>, mask: MaskFunction, ) -> Self
Create a new data mask.
Sourcepub fn to_postgres_view(&self, view_name: &str) -> String
pub fn to_postgres_view(&self, view_name: &str) -> String
Generate PostgreSQL view-based masking.
Sourcepub fn to_mssql_alter(&self) -> String
pub fn to_mssql_alter(&self) -> String
Generate MSSQL dynamic data masking.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataMask
impl<'de> Deserialize<'de> for DataMask
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DataMask
impl StructuralPartialEq for DataMask
Auto Trait Implementations§
impl Freeze for DataMask
impl RefUnwindSafe for DataMask
impl Send for DataMask
impl Sync for DataMask
impl Unpin for DataMask
impl UnwindSafe for DataMask
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