hpl_toolkit::schema

Trait ToSchema

source
pub trait ToSchema {
    // Required methods
    fn schema() -> Schema;
    fn schema_value(&self) -> SchemaValue;
}

Required Methods§

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 ToSchema for bool

source§

impl ToSchema for f32

source§

impl ToSchema for f64

source§

impl ToSchema for i8

source§

impl ToSchema for i16

source§

impl ToSchema for i32

source§

impl ToSchema for i64

source§

impl ToSchema for u8

source§

impl ToSchema for u16

source§

impl ToSchema for u32

source§

impl ToSchema for u64

source§

impl ToSchema for String

source§

impl ToSchema for Vec<(String, String)>

source§

impl ToSchema for Pubkey

source§

impl<K: ToString, V: ToSchema> ToSchema for HashMap<K, V>

source§

impl<T: ToSchema> ToSchema for Option<T>

source§

impl<T: ToSchema> ToSchema for [T; 1]

source§

impl<T: ToSchema> ToSchema for [T; 2]

source§

impl<T: ToSchema> ToSchema for [T; 3]

source§

impl<T: ToSchema> ToSchema for [T; 4]

source§

impl<T: ToSchema> ToSchema for [T; 5]

source§

impl<T: ToSchema> ToSchema for [T; 6]

source§

impl<T: ToSchema> ToSchema for [T; 7]

source§

impl<T: ToSchema> ToSchema for [T; 8]

source§

impl<T: ToSchema> ToSchema for [T; 9]

source§

impl<T: ToSchema> ToSchema for [T; 10]

source§

impl<T: ToSchema> ToSchema for [T; 11]

source§

impl<T: ToSchema> ToSchema for [T; 12]

source§

impl<T: ToSchema> ToSchema for [T; 13]

source§

impl<T: ToSchema> ToSchema for [T; 14]

source§

impl<T: ToSchema> ToSchema for [T; 15]

source§

impl<T: ToSchema> ToSchema for [T; 16]

source§

impl<T: ToSchema> ToSchema for [T; 17]

source§

impl<T: ToSchema> ToSchema for [T; 18]

source§

impl<T: ToSchema> ToSchema for [T; 19]

source§

impl<T: ToSchema> ToSchema for [T; 20]

source§

impl<T: ToSchema> ToSchema for [T; 21]

source§

impl<T: ToSchema> ToSchema for [T; 22]

source§

impl<T: ToSchema> ToSchema for [T; 23]

source§

impl<T: ToSchema> ToSchema for [T; 24]

source§

impl<T: ToSchema> ToSchema for [T; 25]

source§

impl<T: ToSchema> ToSchema for [T; 26]

source§

impl<T: ToSchema> ToSchema for [T; 27]

source§

impl<T: ToSchema> ToSchema for [T; 28]

source§

impl<T: ToSchema> ToSchema for [T; 29]

source§

impl<T: ToSchema> ToSchema for [T; 30]

source§

impl<T: ToSchema> ToSchema for [T; 31]

source§

impl<T: ToSchema> ToSchema for [T; 32]

source§

impl<T: ToSchema> ToSchema for Vec<T>

Implementors§