pub struct DeserializeConfig {
pub max_value_bytes: u32,
pub max_records: u32,
}Expand description
Configuration for the deserializer.
Fields§
§max_value_bytes: u32Maximum allowed value size in bytes. Records whose value exceeds this
limit are rejected with SerializeError::ValueTooLarge.
Default: 512 MiB.
max_records: u32Maximum number of records to restore. Additional records in the stream are silently discarded.
Default: u32::MAX (no limit).
Trait Implementations§
Source§impl Clone for DeserializeConfig
impl Clone for DeserializeConfig
Source§fn clone(&self) -> DeserializeConfig
fn clone(&self) -> DeserializeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeserializeConfig
impl Debug for DeserializeConfig
Auto Trait Implementations§
impl Freeze for DeserializeConfig
impl RefUnwindSafe for DeserializeConfig
impl Send for DeserializeConfig
impl Sync for DeserializeConfig
impl Unpin for DeserializeConfig
impl UnsafeUnpin for DeserializeConfig
impl UnwindSafe for DeserializeConfig
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