[][src]Struct json_spanned_value::Settings

pub struct Settings {
    pub allow_duplicate_keys: bool,
    pub allow_trailing_comma: bool,
    pub allow_comments: bool,
    // some fields omitted
}

Deserialization/parsing settings

Fields

allow_duplicate_keys: bool

Allow duplicate JSON object/map keys when deserializing Maps, such as: {"a": 1, "a": 2}. Only one value will be retained.
default: false

allow_trailing_comma: bool

Allow trailing commas when deserializing an array such as [1, 2, 3,] or object such as {"a", 1, "b": 2,}.

allow_comments: bool

Allow // single line or /* block */ comments.

Trait Implementations

impl Clone for Settings[src]

impl Copy for Settings[src]

impl Debug for Settings[src]

impl Default for Settings[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.