Struct messy_json::MessyJsonSettings[][src]

pub struct MessyJsonSettings {
    pub all_optional: bool,
    pub preserve_mandatory: bool,
}

Setting object for deserializing

Fields

all_optional: bool

True if all field should be considered optional.

preserve_mandatory: bool

Ensure that mandatory field are not set to null explicitely when deserializing.

Ignored if all_optional is false

Implementations

impl MessyJsonSettings[src]

pub fn all_optional(&self) -> bool[src]

pub fn preserve_mandatory(&self) -> bool[src]

Trait Implementations

impl Clone for MessyJsonSettings[src]

impl Copy for MessyJsonSettings[src]

impl Debug for MessyJsonSettings[src]

impl Default for MessyJsonSettings[src]

impl Eq for MessyJsonSettings[src]

impl PartialEq<MessyJsonSettings> for MessyJsonSettings[src]

impl StructuralEq for MessyJsonSettings[src]

impl StructuralPartialEq for MessyJsonSettings[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.