pub struct FlattenOptions {
pub max_depth: usize,
pub max_keys: usize,
pub delimiter: String,
}Expand description
Bounds for flatten_record. The caps keep an adversarial document from
producing an unbounded key explosion.
Fields§
§max_depth: usizeMaximum object nesting to descend into; deeper objects are kept whole as a JSON-stringified leaf rather than recursed.
max_keys: usizeHard ceiling on the number of flattened keys produced.
delimiter: StringSeparator joining a nested path into a dotted key (e.g. a.b.c).
Trait Implementations§
Source§impl Clone for FlattenOptions
impl Clone for FlattenOptions
Source§fn clone(&self) -> FlattenOptions
fn clone(&self) -> FlattenOptions
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 FlattenOptions
impl Debug for FlattenOptions
Auto Trait Implementations§
impl Freeze for FlattenOptions
impl RefUnwindSafe for FlattenOptions
impl Send for FlattenOptions
impl Sync for FlattenOptions
impl Unpin for FlattenOptions
impl UnsafeUnpin for FlattenOptions
impl UnwindSafe for FlattenOptions
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