pub trait Schema {
    const SCHEMA: &'static NamedType;
}
Available on crate feature experimental-derive only.
Expand description

A trait that represents a compile time calculated schema

Required Associated Constants§

source

const SCHEMA: &'static NamedType

A recursive data structure that describes the schema of the given type.

Implementations on Foreign Types§

source§

impl<A: Schema> Schema for (A,)

source§

const SCHEMA: &'static NamedType = _

source§

impl<T: Schema> Schema for [T]

source§

const SCHEMA: &'static NamedType = _

source§

impl<T: Schema> Schema for Option<T>

source§

const SCHEMA: &'static NamedType = _

source§

impl<T: Schema> Schema for Vec<T>

Available on crate features alloc or use-std only.
source§

const SCHEMA: &'static NamedType = _

source§

impl Schema for i8

source§

const SCHEMA: &'static NamedType = _

source§

impl<T: Schema, const N: usize> Schema for Vec<T, N>

Available on crate feature heapless only.
source§

const SCHEMA: &'static NamedType = _

source§

impl<const N: usize> Schema for String<N>

Available on crate feature heapless only.
source§

const SCHEMA: &'static NamedType = _

source§

impl Schema for u128

source§

const SCHEMA: &'static NamedType = _

source§

impl<T: Schema, E: Schema> Schema for Result<T, E>

source§

const SCHEMA: &'static NamedType = _

source§

impl<A: Schema, B: Schema, C: Schema, D: Schema, E: Schema, F: Schema> Schema for (A, B, C, D, E, F)

source§

const SCHEMA: &'static NamedType = _

source§

impl<A: Schema, B: Schema> Schema for (A, B)

source§

const SCHEMA: &'static NamedType = _

source§

impl Schema for i16

source§

const SCHEMA: &'static NamedType = _

source§

impl<T: Schema, const N: usize> Schema for [T; N]

source§

const SCHEMA: &'static NamedType = _

source§

impl Schema for str

source§

const SCHEMA: &'static NamedType = _

source§

impl Schema for i64

source§

const SCHEMA: &'static NamedType = _

source§

impl<A: Schema, B: Schema, C: Schema, D: Schema> Schema for (A, B, C, D)

source§

const SCHEMA: &'static NamedType = _

source§

impl Schema for bool

source§

const SCHEMA: &'static NamedType = _

source§

impl Schema for i128

source§

const SCHEMA: &'static NamedType = _

source§

impl Schema for i32

source§

const SCHEMA: &'static NamedType = _

source§

impl Schema for f32

source§

const SCHEMA: &'static NamedType = _

source§

impl<T: Schema> Schema for &T

source§

const SCHEMA: &'static NamedType = T::SCHEMA

source§

impl Schema for char

source§

const SCHEMA: &'static NamedType = _

source§

impl Schema for u64

source§

const SCHEMA: &'static NamedType = _

source§

impl Schema for u8

source§

const SCHEMA: &'static NamedType = _

source§

impl Schema for u32

source§

const SCHEMA: &'static NamedType = _

source§

impl Schema for ()

source§

const SCHEMA: &'static NamedType = _

source§

impl Schema for String

Available on crate features alloc or use-std only.
source§

const SCHEMA: &'static NamedType = _

source§

impl Schema for f64

source§

const SCHEMA: &'static NamedType = _

source§

impl<A: Schema, B: Schema, C: Schema> Schema for (A, B, C)

source§

const SCHEMA: &'static NamedType = _

source§

impl Schema for u16

source§

const SCHEMA: &'static NamedType = _

source§

impl<A: Schema, B: Schema, C: Schema, D: Schema, E: Schema> Schema for (A, B, C, D, E)

source§

const SCHEMA: &'static NamedType = _

Implementors§