pub struct SelectiveSerializationOptions {
pub include_null_fields: bool,
pub compact_arrays: bool,
pub optimize_nested_objects: bool,
pub max_nesting_depth: usize,
pub compress_large_strings: bool,
pub string_compression_threshold: usize,
}Expand description
Options for selective field serialization
Fields§
§include_null_fields: boolWhether to include null fields in output (default: false)
compact_arrays: boolWhether to use compact array format for stack traces (default: true)
optimize_nested_objects: boolWhether to optimize nested object serialization (default: true)
max_nesting_depth: usizeMaximum depth for nested object serialization (default: 10)
compress_large_strings: boolWhether to use field-level compression for large strings (default: false)
string_compression_threshold: usizeThreshold for string compression in bytes (default: 1024)
Trait Implementations§
Source§impl Clone for SelectiveSerializationOptions
impl Clone for SelectiveSerializationOptions
Source§fn clone(&self) -> SelectiveSerializationOptions
fn clone(&self) -> SelectiveSerializationOptions
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 SelectiveSerializationOptions
impl RefUnwindSafe for SelectiveSerializationOptions
impl Send for SelectiveSerializationOptions
impl Sync for SelectiveSerializationOptions
impl Unpin for SelectiveSerializationOptions
impl UnwindSafe for SelectiveSerializationOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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