pub struct ParsedCreateMaskingPolicy {
pub name: String,
pub strategy: ParsedMaskingStrategy,
pub exempt_roles: Vec<String>,
}Expand description
Parsed CREATE MASKING POLICY <name> STRATEGY <kind> [<arg>] EXEMPT ROLES (<r>, ...) statement.
Tenant-scoped catalogue form from v0.6.0. Decomposes at parse time
into a ParsedMaskingStrategy plus the list of exempt roles; the
planner translates to the kernel’s MaskingStrategyKind + RoleGuard.
Fields§
§name: StringPolicy name, unique per tenant.
strategy: ParsedMaskingStrategyMasking strategy.
exempt_roles: Vec<String>Roles that see the raw (unmasked) value. Lower-cased at parse
time so the kernel RoleGuard can compare case-insensitively.
Trait Implementations§
Source§impl Clone for ParsedCreateMaskingPolicy
impl Clone for ParsedCreateMaskingPolicy
Source§fn clone(&self) -> ParsedCreateMaskingPolicy
fn clone(&self) -> ParsedCreateMaskingPolicy
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 moreAuto Trait Implementations§
impl Freeze for ParsedCreateMaskingPolicy
impl RefUnwindSafe for ParsedCreateMaskingPolicy
impl Send for ParsedCreateMaskingPolicy
impl Sync for ParsedCreateMaskingPolicy
impl Unpin for ParsedCreateMaskingPolicy
impl UnsafeUnpin for ParsedCreateMaskingPolicy
impl UnwindSafe for ParsedCreateMaskingPolicy
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