pub struct EncodeConfig {
pub validate_messages: bool,
pub include_checksums: bool,
pub compress_repeated: bool,
pub max_message_size: usize,
pub buffer_strategy: BufferStrategy,
}Expand description
Configuration for GPB encoding operations.
Fields§
§validate_messages: boolEnable message validation before encoding
include_checksums: boolInclude checksums for data integrity
compress_repeated: boolCompress repeated fields
max_message_size: usizeMaximum message size in bytes
buffer_strategy: BufferStrategyBuffer pre-allocation strategy
Trait Implementations§
Source§impl Clone for EncodeConfig
impl Clone for EncodeConfig
Source§fn clone(&self) -> EncodeConfig
fn clone(&self) -> EncodeConfig
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 EncodeConfig
impl Debug for EncodeConfig
Auto Trait Implementations§
impl Freeze for EncodeConfig
impl RefUnwindSafe for EncodeConfig
impl Send for EncodeConfig
impl Sync for EncodeConfig
impl Unpin for EncodeConfig
impl UnwindSafe for EncodeConfig
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