pub struct QueryResultGuardConfig {
pub redaction_marker: String,
pub redact_pii_patterns: Vec<String>,
pub rows_keys: Vec<String>,
}Expand description
Configuration for QueryResultGuard.
Fields§
§redaction_marker: StringMarker written in place of redacted column values. Defaults to
DEFAULT_REDACTION_MARKER.
redact_pii_patterns: Vec<String>Regex patterns whose matches in any string value are replaced by the redaction marker. Compiled case-insensitively. Invalid patterns are logged and skipped (see fail-closed note in the module docs).
rows_keys: Vec<String>JSON keys the guard recognises as the list of rows on a tool response. The first key that resolves to a JSON array wins.
Trait Implementations§
Source§impl Clone for QueryResultGuardConfig
impl Clone for QueryResultGuardConfig
Source§fn clone(&self) -> QueryResultGuardConfig
fn clone(&self) -> QueryResultGuardConfig
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 QueryResultGuardConfig
impl Debug for QueryResultGuardConfig
Source§impl Default for QueryResultGuardConfig
impl Default for QueryResultGuardConfig
Source§impl<'de> Deserialize<'de> for QueryResultGuardConfig
impl<'de> Deserialize<'de> for QueryResultGuardConfig
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
Auto Trait Implementations§
impl Freeze for QueryResultGuardConfig
impl RefUnwindSafe for QueryResultGuardConfig
impl Send for QueryResultGuardConfig
impl Sync for QueryResultGuardConfig
impl Unpin for QueryResultGuardConfig
impl UnsafeUnpin for QueryResultGuardConfig
impl UnwindSafe for QueryResultGuardConfig
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