pub struct NestedEncoderConfig {
pub max_depth: usize,
pub max_record_size: Option<usize>,
pub validate_canonical: bool,
}Expand description
Configuration for nested structure encoding (v0.5)
Fields§
§max_depth: usizeMaximum nesting depth allowed (default: 32)
max_record_size: Option<usize>Maximum record size in bytes (None = unlimited)
validate_canonical: boolWhether to validate canonical ordering
Implementations§
Source§impl NestedEncoderConfig
impl NestedEncoderConfig
Sourcepub fn with_max_depth(self, max_depth: usize) -> Self
pub fn with_max_depth(self, max_depth: usize) -> Self
Sets the maximum nesting depth
Sourcepub fn with_max_record_size(self, max_size: Option<usize>) -> Self
pub fn with_max_record_size(self, max_size: Option<usize>) -> Self
Sets the maximum record size in bytes
Sourcepub fn with_validate_canonical(self, validate: bool) -> Self
pub fn with_validate_canonical(self, validate: bool) -> Self
Sets whether to validate canonical ordering
Trait Implementations§
Source§impl Clone for NestedEncoderConfig
impl Clone for NestedEncoderConfig
Source§fn clone(&self) -> NestedEncoderConfig
fn clone(&self) -> NestedEncoderConfig
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 NestedEncoderConfig
impl Debug for NestedEncoderConfig
Auto Trait Implementations§
impl Freeze for NestedEncoderConfig
impl RefUnwindSafe for NestedEncoderConfig
impl Send for NestedEncoderConfig
impl Sync for NestedEncoderConfig
impl Unpin for NestedEncoderConfig
impl UnwindSafe for NestedEncoderConfig
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