pub trait Schema {
const SCHEMA: &'static NamedType;
}Expand description
A trait that represents a compile time calculated schema
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl Schema for SocketAddr
Available on crate feature core-net only.
impl Schema for SocketAddr
Available on crate feature
core-net only.Source§impl Schema for String
Available on crate feature use-std and (crate features alloc or use-std) only.
impl Schema for String
Available on crate feature
use-std and (crate features alloc or use-std) only.Source§impl Schema for SocketAddrV4
Available on crate feature core-net only.
impl Schema for SocketAddrV4
Available on crate feature
core-net only.Source§impl Schema for SocketAddrV6
Available on crate feature core-net only.
impl Schema for SocketAddrV6
Available on crate feature
core-net only.Source§impl<A: Schema, B: Schema, C: Schema, D: Schema, E: Schema, F: Schema> Schema for (A, B, C, D, E, F)
impl<A: Schema, B: Schema, C: Schema, D: Schema, E: Schema, F: Schema> Schema for (A, B, C, D, E, F)
Source§impl<K: Schema> Schema for BTreeSet<K>
Available on crate feature use-std and (crate features alloc or use-std) only.
impl<K: Schema> Schema for BTreeSet<K>
Available on crate feature
use-std and (crate features alloc or use-std) only.Source§impl<K: Schema> Schema for HashSet<K>
Available on crate feature use-std and (crate features alloc or use-std) only.
impl<K: Schema> Schema for HashSet<K>
Available on crate feature
use-std and (crate features alloc or use-std) only.Source§impl<K: Schema, V: Schema> Schema for BTreeMap<K, V>
Available on crate feature use-std and (crate features alloc or use-std) only.
impl<K: Schema, V: Schema> Schema for BTreeMap<K, V>
Available on crate feature
use-std and (crate features alloc or use-std) only.Source§impl<K: Schema, V: Schema> Schema for HashMap<K, V>
Available on crate feature use-std and (crate features alloc or use-std) only.
impl<K: Schema, V: Schema> Schema for HashMap<K, V>
Available on crate feature
use-std and (crate features alloc or use-std) only.Source§impl<T, const R: usize, const C: usize> Schema for Matrix<T, Const<R>, Const<C>, ArrayStorage<T, R, C>>
Available on crate feature nalgebra-v0_33 only.
impl<T, const R: usize, const C: usize> Schema for Matrix<T, Const<R>, Const<C>, ArrayStorage<T, R, C>>
Available on crate feature
nalgebra-v0_33 only.Source§impl<T: Schema + Scalar> Schema for Quaternion<T>
Available on crate feature nalgebra-v0_33 only.
impl<T: Schema + Scalar> Schema for Quaternion<T>
Available on crate feature
nalgebra-v0_33 only.Source§impl<T: Schema> Schema for Box<T>
Available on crate feature use-std and (crate features alloc or use-std) only.
impl<T: Schema> Schema for Box<T>
Available on crate feature
use-std and (crate features alloc or use-std) only.Source§impl<T: Schema> Schema for Vec<T>
Available on crate feature use-std and (crate features alloc or use-std) only.
impl<T: Schema> Schema for Vec<T>
Available on crate feature
use-std and (crate features alloc or use-std) only.Source§impl<T: Schema> Schema for Saturating<T>
Available on crate feature core-num-saturating only.
impl<T: Schema> Schema for Saturating<T>
Available on crate feature
core-num-saturating only.Source§impl<T: Schema, const N: usize> Schema for Vec<T, N>
Available on crate feature heapless-v0_7 only.
impl<T: Schema, const N: usize> Schema for Vec<T, N>
Available on crate feature
heapless-v0_7 only.Source§impl<T: Schema, const N: usize> Schema for Vec<T, N>
Available on crate feature heapless-v0_8 only.
impl<T: Schema, const N: usize> Schema for Vec<T, N>
Available on crate feature
heapless-v0_8 only.Source§impl<T: Schema, const N: usize> Schema for Array<T, N>
Available on crate feature serde-big-array-v0_5 only.
impl<T: Schema, const N: usize> Schema for Array<T, N>
Available on crate feature
serde-big-array-v0_5 only.Source§impl<T: Schema, const N: usize> Schema for Vec<T, N>
Available on crate feature heapless-v0_9 only.
impl<T: Schema, const N: usize> Schema for Vec<T, N>
Available on crate feature
heapless-v0_9 only.Source§impl<T: ?Sized + Schema + ToOwned> Schema for Cow<'_, T>
Available on crate feature use-std and (crate features alloc or use-std) only.
impl<T: ?Sized + Schema + ToOwned> Schema for Cow<'_, T>
Available on crate feature
use-std and (crate features alloc or use-std) only.