Enum messy_json::MessyJsonInner[][src]

pub enum MessyJsonInner {
    Array(MessyJsonArray),
    Bool(MessyJsonScalar),
    Number(MessyJsonNumeric),
    Obj(MessyJsonObject),
    String(MessyJsonScalar),
}

Schema of a JSON Value

This enum describes in broad strokes how a JSON should look like when deserialized.

At deserialization, this enum will ensure that the JSON Value corresponds to this schema.

Variants

Implementations

impl MessyJsonInner[src]

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

Check if the inner value of this enum is optional

Trait Implementations

impl Clone for MessyJsonInner[src]

impl Debug for MessyJsonInner[src]

impl Eq for MessyJsonInner[src]

impl From<&'_ MessyJsonNumeric> for MessyJsonInner[src]

impl From<&'_ MessyJsonObject> for MessyJsonInner[src]

impl From<MessyJsonArray> for MessyJsonInner[src]

impl From<MessyJsonInner> for MessyJson[src]

impl From<MessyJsonNumeric> for MessyJsonInner[src]

impl From<MessyJsonObject> for MessyJsonInner[src]

impl Hash for MessyJsonInner[src]

impl PartialEq<MessyJsonInner> for MessyJsonInner[src]

impl StructuralEq for MessyJsonInner[src]

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