Struct messy_json::MessyJsonScalar[][src]

pub struct MessyJsonScalar {
    pub optional: bool,
}

JSON Scalar schema value

Simple struct to specifiy if a JSON scalar value is optional or not

Fields

optional: bool

true if optional

Implementations

impl MessyJsonScalar[src]

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

Create a new MessyJsonScalar

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

Check if the scalar value is optional

Trait Implementations

impl Clone for MessyJsonScalar[src]

impl Copy for MessyJsonScalar[src]

impl Debug for MessyJsonScalar[src]

impl Eq for MessyJsonScalar[src]

impl Hash for MessyJsonScalar[src]

impl PartialEq<MessyJsonScalar> for MessyJsonScalar[src]

impl StructuralEq for MessyJsonScalar[src]

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