pub struct MergedRules {
pub keep_fields: Vec<String>,
pub strip_fields: Vec<String>,
pub condense_users: bool,
pub truncate_strings_at: usize,
pub max_array_items: usize,
pub strip_nulls: bool,
pub flatten: bool,
pub custom_transforms: Vec<CustomTransform>,
}Expand description
Fully resolved filter rules for a single tool call.
Produced by Config::get_tool_rules — the result of merging the default
rules with any tool-specific overrides.
Fields§
§keep_fields: Vec<String>Whitelist of JSON field names to keep.
strip_fields: Vec<String>Blacklist of JSON field names to strip recursively.
condense_users: boolWhether to condense user objects to bare usernames.
truncate_strings_at: usizeMaximum character length for any string value.
max_array_items: usizeMaximum number of items in any JSON array.
strip_nulls: boolWhether to remove null and empty-string fields.
flatten: boolWhether to unwrap single-key wrapper objects.
custom_transforms: Vec<CustomTransform>Compiled regex-based string replacements.
Trait Implementations§
Source§impl Clone for MergedRules
impl Clone for MergedRules
Source§fn clone(&self) -> MergedRules
fn clone(&self) -> MergedRules
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 MergedRules
impl RefUnwindSafe for MergedRules
impl Send for MergedRules
impl Sync for MergedRules
impl Unpin for MergedRules
impl UnsafeUnpin for MergedRules
impl UnwindSafe for MergedRules
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