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

The maximum recursion level to allow.

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.

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.

The maximum collection size to accumulate.

The default is 256.

Trait Implementations

impl Debug for Config
[src]

Formats the value using the given formatter.

impl Clone for Config
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Config
[src]

Returns the "default value" for a type. Read more