Enum jtd::Type[][src]

pub enum Type {
    Boolean,
    Int8,
    Uint8,
    Int16,
    Uint16,
    Int32,
    Uint32,
    Float32,
    Float64,
    String,
    Timestamp,
}

The values Schema::Type::type_ may take on.

Variants

Boolean

Either JSON true or false.

Int8

A JSON number with zero fractional part within the range of i8.

Uint8

A JSON number with zero fractional part within the range of u8.

Int16

A JSON number with zero fractional part within the range of i16.

Uint16

A JSON number with zero fractional part within the range of u16.

Int32

A JSON number with zero fractional part within the range of i32.

Uint32

A JSON number with zero fractional part within the range of u32.

Float32

A JSON number. Code generators will treat this like a Rust f32.

Float64

A JSON number. Code generators will treat this like a Rust f64.

String

A JSON string.

Timestamp

A JSON string encoding a RFC3339 timestamp.

Trait Implementations

impl Clone for Type[src]

impl Debug for Type[src]

impl Eq for Type[src]

impl PartialEq<Type> for Type[src]

impl StructuralEq for Type[src]

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