Trait SchemaCustomTypes

Source
pub trait SchemaCustomTypes {
    // Provided method
    fn schema_types() -> Vec<Option<CustomType>> { ... }
}
Expand description

Trait for defining custom types in a schema.

Provided Methods§

Source

fn schema_types() -> Vec<Option<CustomType>>

Returns a vector of optional CustomTypes.

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 SchemaCustomTypes for PublicKey

Source§

impl SchemaCustomTypes for Key

Source§

impl SchemaCustomTypes for Address

Source§

impl SchemaCustomTypes for bool

Source§

impl SchemaCustomTypes for i32

Source§

impl SchemaCustomTypes for i64

Source§

impl SchemaCustomTypes for u8

Source§

impl SchemaCustomTypes for u32

Source§

impl SchemaCustomTypes for u64

Source§

impl SchemaCustomTypes for ()

Source§

impl SchemaCustomTypes for String

Source§

impl SchemaCustomTypes for Bytes

Source§

impl SchemaCustomTypes for U128

Source§

impl SchemaCustomTypes for U256

Source§

impl SchemaCustomTypes for U512

Source§

impl SchemaCustomTypes for URef

Source§

impl<T1: SchemaCustomTypes> SchemaCustomTypes for (T1,)

Source§

impl<T1: SchemaCustomTypes, T2: SchemaCustomTypes> SchemaCustomTypes for (T1, T2)

Source§

impl<T1: SchemaCustomTypes, T2: SchemaCustomTypes, T3: SchemaCustomTypes> SchemaCustomTypes for (T1, T2, T3)

Source§

impl<T: SchemaCustomTypes> SchemaCustomTypes for Option<T>

Source§

impl<T: SchemaCustomTypes> SchemaCustomTypes for Maybe<T>

Source§

impl<T: SchemaCustomTypes> SchemaCustomTypes for Vec<T>

Source§

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

Source§

impl<T: SchemaCustomTypes, E: SchemaCustomTypes> SchemaCustomTypes for BTreeMap<T, E>

Source§

impl<const COUNT: usize> SchemaCustomTypes for [u8; COUNT]

Implementors§