pub struct DecodeConfig {
pub validate_checksums: bool,
pub validate_structure: bool,
pub max_message_size: usize,
pub strict_field_validation: bool,
pub zero_copy_strings: bool,
}Expand description
Configuration for GPB decoding operations.
Fields§
§validate_checksums: boolValidate checksums if present
validate_structure: boolValidate message structure
max_message_size: usizeMaximum message size to accept
strict_field_validation: boolStrict field validation
zero_copy_strings: boolZero-copy string optimization
Trait Implementations§
Source§impl Clone for DecodeConfig
impl Clone for DecodeConfig
Source§fn clone(&self) -> DecodeConfig
fn clone(&self) -> DecodeConfig
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 DecodeConfig
impl Debug for DecodeConfig
Auto Trait Implementations§
impl Freeze for DecodeConfig
impl RefUnwindSafe for DecodeConfig
impl Send for DecodeConfig
impl Sync for DecodeConfig
impl Unpin for DecodeConfig
impl UnwindSafe for DecodeConfig
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