Struct fourleaf::de::Config
[−]
[src]
pub struct Config { pub recursion_limit: usize, pub ignore_unknown_fields: bool, pub max_blob: usize, pub max_collect: usize, // some fields omitted }
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
impl Debug for Config
[src]
impl Clone for Config
[src]
fn clone(&self) -> Config
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more