pub struct RedactionConfig {
pub enabled: bool,
pub exclude_builtin: Vec<String>,
pub custom: Vec<CustomRedactionPattern>,
}Expand description
PII redaction settings persisted under [redaction] in solo.config.toml
(v0.8.0 P5).
Default = enabled = false (opt-in per the locked v0.8.0 design).
With enabled = true the writer-actor runs every built-in detector
(email, ssn, us_phone, credit_card, aws_access_key,
github_pat) over episodes.content and document_chunks.content
before INSERT. Operators disable specific defaults via
exclude_builtin = ["email", ...], and add their own under
[[redaction.custom]] blocks.
Per-tenant redaction overrides are deliberately NOT supported in
v0.8.0 P5 — the redaction block in solo.config.toml is the single
source of truth. Per-tenant config layering is a v0.8.1+ concern.
Backward compatible: pre-v0.8.0-P5 configs that omit the block
deserialize with RedactionConfig::default() (everything off).
Fields§
§enabled: boolMaster switch. Default false (opt-in).
exclude_builtin: Vec<String>Names of built-in patterns to disable. Defaults to empty (all
builtins active when enabled = true).
custom: Vec<CustomRedactionPattern>Operator-supplied custom patterns. Compiled at
RedactionRegistry::from_config time; an invalid regex here
surfaces as TenantHandle::open error.
Trait Implementations§
Source§impl Clone for RedactionConfig
impl Clone for RedactionConfig
Source§fn clone(&self) -> RedactionConfig
fn clone(&self) -> RedactionConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RedactionConfig
impl Debug for RedactionConfig
Source§impl Default for RedactionConfig
impl Default for RedactionConfig
Source§fn default() -> RedactionConfig
fn default() -> RedactionConfig
Source§impl<'de> Deserialize<'de> for RedactionConfig
impl<'de> Deserialize<'de> for RedactionConfig
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>,
Source§impl PartialEq for RedactionConfig
impl PartialEq for RedactionConfig
Source§fn eq(&self, other: &RedactionConfig) -> bool
fn eq(&self, other: &RedactionConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for RedactionConfig
impl Serialize for RedactionConfig
impl Eq for RedactionConfig
impl StructuralPartialEq for RedactionConfig
Auto Trait Implementations§
impl Freeze for RedactionConfig
impl RefUnwindSafe for RedactionConfig
impl Send for RedactionConfig
impl Sync for RedactionConfig
impl Unpin for RedactionConfig
impl UnsafeUnpin for RedactionConfig
impl UnwindSafe for RedactionConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more