pub struct ProjectionConfig {
pub strip_prefixes: Vec<String>,
pub strip_names: Vec<String>,
pub max_depth: usize,
pub strip_empty: bool,
pub dedup_timestamps: bool,
}Expand description
Configuration for JSON projection.
Fields§
§strip_prefixes: Vec<String>Remove fields matching these prefixes (case-insensitive).
strip_names: Vec<String>Remove fields matching these exact names (case-insensitive).
max_depth: usizeMaximum nesting depth to preserve. Objects deeper than this
are replaced with {...N keys}. Default: 5.
strip_empty: boolRemove empty arrays and objects. Default: true.
dedup_timestamps: boolRemove redundant timestamps (keep only the most recent). Default: true.
Trait Implementations§
Source§impl Clone for ProjectionConfig
impl Clone for ProjectionConfig
Source§fn clone(&self) -> ProjectionConfig
fn clone(&self) -> ProjectionConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProjectionConfig
impl Debug for ProjectionConfig
Auto Trait Implementations§
impl Freeze for ProjectionConfig
impl RefUnwindSafe for ProjectionConfig
impl Send for ProjectionConfig
impl Sync for ProjectionConfig
impl Unpin for ProjectionConfig
impl UnsafeUnpin for ProjectionConfig
impl UnwindSafe for ProjectionConfig
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