[]Enum geng::prelude::trans::Schema

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

Variants

Bool
Int32
Int64
Float32
Float64
String
Struct(Struct)
OneOf

Fields of OneOf

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

Fields of Enum

documentation: Documentationbase_name: Namevariants: Vec<EnumVariant>

Implementations

impl Schema

pub fn full_name(&self) -> Name

pub fn hashable(&self) -> bool

pub fn of<T>() -> Arc<Schema> where
    T: Trans

Trait Implementations

impl Clone for Schema

impl Debug for Schema

impl Eq for Schema

impl Hash for Schema

impl PartialEq<Schema> for Schema

impl StructuralEq for Schema

impl StructuralPartialEq for Schema

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> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,