Struct messy_json::MessyJsonArray[][src]

pub struct MessyJsonArray { /* fields omitted */ }

JSON Array schema value

Runtime representation of a ‘to-be-deserialized’ JSON Array.

This object specify if the array is optional and describes its children.

Limitations

This objects cannot describe multiple types of childrens

Implementations

impl MessyJsonArray[src]

pub fn new(items: MessyJson, optional: bool) -> Self[src]

Create a new MessyJsonArray

pub fn items(&self) -> &MessyJson[src]

Get the underlying items of a MessyJsonArray

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

Check if the array is optional

Trait Implementations

impl Clone for MessyJsonArray[src]

impl Debug for MessyJsonArray[src]

impl Eq for MessyJsonArray[src]

impl From<MessyJsonArray> for MessyJsonInner[src]

impl Hash for MessyJsonArray[src]

impl PartialEq<MessyJsonArray> for MessyJsonArray[src]

impl StructuralEq for MessyJsonArray[src]

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