[][src]Struct jellyschema::schema::Type

pub struct Type { /* fields omitted */ }

Methods

impl Type[src]

pub fn primitive_type(&self) -> &PrimitiveType[src]

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

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

impl Type[src]

pub fn new(primitive_type: PrimitiveType, optional: bool) -> Type[src]

pub fn new_optional(primitive_type: PrimitiveType) -> Type[src]

pub fn new_required(primitive_type: PrimitiveType) -> Type[src]

Trait Implementations

impl Default for Type[src]

impl PartialEq<Type> for Type[src]

impl Debug for Type[src]

impl Display for Type[src]

impl FromStr for Type[src]

type Err = Error

The associated error which can be returned from parsing.

Auto Trait Implementations

impl Send for Type

impl Sync for Type

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]