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§