Struct messy_json::MessyJsonObjectInner[][src]

pub struct MessyJsonObjectInner { /* fields omitted */ }

JSON Object schema value

Describe a JSON Object at runtime

Implementations

impl MessyJsonObjectInner[src]

pub fn new(properties: BTreeMap<KeyType, MessyJson>, optional: bool) -> Self[src]

Create a new MessyJsonObject

pub fn properties(&self) -> &BTreeMap<KeyType, MessyJson>[src]

Get a reference to the MessyJsonObject’s properties

pub fn has_field(&self, key: &str) -> bool[src]

Get a reference to the MessyJsonObject’s properties

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

Check if the object is optional

Trait Implementations

impl Clone for MessyJsonObjectInner[src]

impl Debug for MessyJsonObjectInner[src]

impl Default for MessyJsonObjectInner[src]

impl Eq for MessyJsonObjectInner[src]

impl From<MessyJsonObjectInner> for MessyJsonObject[src]

impl Hash for MessyJsonObjectInner[src]

impl PartialEq<MessyJsonObjectInner> for MessyJsonObjectInner[src]

impl StructuralEq for MessyJsonObjectInner[src]

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