pub struct Config {
pub recursion_limit: usize,
pub ignore_unknown_fields: bool,
pub max_blob: usize,
pub max_collect: usize,
/* private fields */
}
Expand description
Run-time configuration for deserialisation.
Fields§
§recursion_limit: usize
The maximum recursion level to allow.
ignore_unknown_fields: bool
If true, deserialisers should silently ignore fields with tags they do not know how to handle. If false, deserialisers should raise an error if they encounter such a field.
max_blob: usize
The maximum blob size to buffer into an owned object.
This does not affect zero-copy values, which will reference arbitrarily large blobs. It also does not affect fixed-length arrays.
The default is 65536.
max_collect: usize
The maximum collection size to accumulate.
The default is 256.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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