pub enum ParsedMaskingStrategy {
RedactSsn,
RedactPhone,
RedactEmail,
RedactCreditCard,
RedactCustom {
replacement: String,
},
Hash,
Tokenize,
Truncate {
max_chars: usize,
},
Null,
}Expand description
Parser-level mirror of the kernel’s MaskingStrategyKind. Kept
independent of kimberlite-kernel so the query crate does not
depend on the kernel; translation happens in the planner.
Variants§
RedactSsn
STRATEGY REDACT_SSN — SSN pattern redaction (***-**-6789).
RedactPhone
STRATEGY REDACT_PHONE — phone pattern (***-***-4567).
RedactEmail
STRATEGY REDACT_EMAIL — email pattern (j***@example.com).
RedactCreditCard
STRATEGY REDACT_CC — credit-card pattern (****-****-****-1234).
RedactCustom
STRATEGY REDACT_CUSTOM '<replacement>' — fixed replacement string.
Hash
STRATEGY HASH — SHA-256 hex digest.
Tokenize
STRATEGY TOKENIZE — BLAKE3-derived deterministic token.
Truncate
STRATEGY TRUNCATE <n> — keep first n chars, pad with "...".
Null
STRATEGY NULL — replace with empty/NULL.
Trait Implementations§
Source§impl Clone for ParsedMaskingStrategy
impl Clone for ParsedMaskingStrategy
Source§fn clone(&self) -> ParsedMaskingStrategy
fn clone(&self) -> ParsedMaskingStrategy
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 ParsedMaskingStrategy
impl Debug for ParsedMaskingStrategy
Source§impl PartialEq for ParsedMaskingStrategy
impl PartialEq for ParsedMaskingStrategy
impl Eq for ParsedMaskingStrategy
impl StructuralPartialEq for ParsedMaskingStrategy
Auto Trait Implementations§
impl Freeze for ParsedMaskingStrategy
impl RefUnwindSafe for ParsedMaskingStrategy
impl Send for ParsedMaskingStrategy
impl Sync for ParsedMaskingStrategy
impl Unpin for ParsedMaskingStrategy
impl UnsafeUnpin for ParsedMaskingStrategy
impl UnwindSafe for ParsedMaskingStrategy
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