pub struct DecoderConfig {
pub validate_ordering: bool,
pub strict_parsing: bool,
pub allow_streaming: bool,
pub validate_nesting: bool,
pub allow_delta: bool,
pub max_depth: usize,
}Expand description
Configuration for binary decoding
Fields§
§validate_ordering: boolWhether to validate field ordering (canonical form)
strict_parsing: boolWhether to check for trailing data
allow_streaming: boolWhether to allow streaming frame processing (v0.5)
validate_nesting: boolWhether to validate nesting depth and structure (v0.5)
allow_delta: boolWhether to allow delta packet processing (v0.5)
max_depth: usizeMaximum nesting depth for nested structures (v0.5)
Implementations§
Source§impl DecoderConfig
impl DecoderConfig
Sourcepub fn with_validate_ordering(self, validate: bool) -> Self
pub fn with_validate_ordering(self, validate: bool) -> Self
Sets whether to validate field ordering
Sourcepub fn with_strict_parsing(self, strict: bool) -> Self
pub fn with_strict_parsing(self, strict: bool) -> Self
Sets whether to check for trailing data
Sourcepub fn with_streaming(self, allow: bool) -> Self
pub fn with_streaming(self, allow: bool) -> Self
Enables streaming frame processing (v0.5)
Sourcepub fn with_validate_nesting(self, validate: bool) -> Self
pub fn with_validate_nesting(self, validate: bool) -> Self
Enables nesting validation (v0.5)
Sourcepub fn with_delta(self, allow: bool) -> Self
pub fn with_delta(self, allow: bool) -> Self
Enables delta packet processing (v0.5)
Sourcepub fn with_max_depth(self, depth: usize) -> Self
pub fn with_max_depth(self, depth: usize) -> Self
Sets maximum nesting depth for nested structures (v0.5)
Trait Implementations§
Source§impl Clone for DecoderConfig
impl Clone for DecoderConfig
Source§fn clone(&self) -> DecoderConfig
fn clone(&self) -> DecoderConfig
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 DecoderConfig
impl Debug for DecoderConfig
Auto Trait Implementations§
impl Freeze for DecoderConfig
impl RefUnwindSafe for DecoderConfig
impl Send for DecoderConfig
impl Sync for DecoderConfig
impl Unpin for DecoderConfig
impl UnwindSafe for DecoderConfig
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