pub struct NestedDecoderConfig {
pub allow_nested: bool,
pub validate_nesting: bool,
pub max_depth: usize,
}Expand description
Configuration for nested structure decoding (v0.5)
Fields§
§allow_nested: boolWhether to allow nested structures (default: true)
validate_nesting: boolWhether to validate nesting rules (default: false)
max_depth: usizeMaximum nesting depth allowed (default: 32)
Implementations§
Source§impl NestedDecoderConfig
impl NestedDecoderConfig
Sourcepub fn with_allow_nested(self, allow: bool) -> Self
pub fn with_allow_nested(self, allow: bool) -> Self
Sets whether to allow nested structures
Sourcepub fn with_validate_nesting(self, validate: bool) -> Self
pub fn with_validate_nesting(self, validate: bool) -> Self
Sets whether to validate nesting rules
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
Trait Implementations§
Source§impl Clone for NestedDecoderConfig
impl Clone for NestedDecoderConfig
Source§fn clone(&self) -> NestedDecoderConfig
fn clone(&self) -> NestedDecoderConfig
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 NestedDecoderConfig
impl Debug for NestedDecoderConfig
Auto Trait Implementations§
impl Freeze for NestedDecoderConfig
impl RefUnwindSafe for NestedDecoderConfig
impl Send for NestedDecoderConfig
impl Sync for NestedDecoderConfig
impl Unpin for NestedDecoderConfig
impl UnwindSafe for NestedDecoderConfig
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