Trait gotcha::Schematic

source ·
pub trait Schematic {
    // Required methods
    fn name() -> &'static str;
    fn required() -> bool;
    fn type_() -> &'static str;

    // Provided method
    fn generate_schema() -> Schema { ... }
}

Required Methods§

source

fn name() -> &'static str

source

fn required() -> bool

source

fn type_() -> &'static str

Provided Methods§

Implementations on Foreign Types§

source§

impl<T> Schematic for Vec<T, Global>where T: Schematic,

source§

fn name() -> &'static str

source§

fn required() -> bool

source§

fn type_() -> &'static str

source§

fn generate_schema() -> Schema

source§

impl<T> Schematic for Option<T>where T: Schematic,

source§

fn name() -> &'static str

source§

fn required() -> bool

source§

fn type_() -> &'static str

source§

fn generate_schema() -> Schema

source§

impl Schematic for i8

source§

fn name() -> &'static str

source§

fn required() -> bool

source§

fn type_() -> &'static str

source§

impl<T> Schematic for &Twhere T: Schematic,

source§

fn name() -> &'static str

source§

fn required() -> bool

source§

fn type_() -> &'static str

source§

fn generate_schema() -> Schema

source§

impl Schematic for usize

source§

fn name() -> &'static str

source§

fn required() -> bool

source§

fn type_() -> &'static str

source§

impl Schematic for bool

source§

fn name() -> &'static str

source§

fn required() -> bool

source§

fn type_() -> &'static str

source§

impl Schematic for u8

source§

fn name() -> &'static str

source§

fn required() -> bool

source§

fn type_() -> &'static str

source§

impl Schematic for u64

source§

fn name() -> &'static str

source§

fn required() -> bool

source§

fn type_() -> &'static str

source§

impl Schematic for u16

source§

fn name() -> &'static str

source§

fn required() -> bool

source§

fn type_() -> &'static str

source§

impl Schematic for String

source§

fn name() -> &'static str

source§

fn required() -> bool

source§

fn type_() -> &'static str

source§

impl Schematic for i16

source§

fn name() -> &'static str

source§

fn required() -> bool

source§

fn type_() -> &'static str

source§

impl Schematic for i64

source§

fn name() -> &'static str

source§

fn required() -> bool

source§

fn type_() -> &'static str

source§

impl Schematic for isize

source§

fn name() -> &'static str

source§

fn required() -> bool

source§

fn type_() -> &'static str

source§

impl Schematic for u32

source§

fn name() -> &'static str

source§

fn required() -> bool

source§

fn type_() -> &'static str

source§

impl Schematic for i32

source§

fn name() -> &'static str

source§

fn required() -> bool

source§

fn type_() -> &'static str

Implementors§