[][src]Enum trans_schema::Schema

pub enum Schema {
    Bool,
    Int32,
    Int64,
    Float32,
    Float64,
    String,
    Struct(Struct),
    OneOf {
        base_name: Name,
        variants: Vec<Struct>,
    },
    Option(Arc<Schema>),
    Vec(Arc<Schema>),
    Map(Arc<Schema>, Arc<Schema>),
    Enum {
        base_name: Name,
        variants: Vec<Name>,
    },
}

Variants

Bool
Int32
Int64
Float32
Float64
String
Struct(Struct)
OneOf

Fields of OneOf

base_name: Namevariants: Vec<Struct>
Option(Arc<Schema>)
Vec(Arc<Schema>)
Map(Arc<Schema>, Arc<Schema>)
Enum

Fields of Enum

base_name: Namevariants: Vec<Name>

Methods

impl Schema[src]

pub fn full_name(&self) -> Name[src]

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

Trait Implementations

impl Clone for Schema[src]

impl Debug for Schema[src]

impl Eq for Schema[src]

impl Hash for Schema[src]

impl PartialEq<Schema> for Schema[src]

impl StructuralEq for Schema[src]

impl StructuralPartialEq for Schema[src]

Auto Trait Implementations

impl RefUnwindSafe for Schema

impl Send for Schema

impl Sync for Schema

impl Unpin for Schema

impl UnwindSafe for Schema

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.