Trait odra_schema::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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl SchemaCustomTypes for PublicKey

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<T1: CLTyped> SchemaCustomTypes for (T1,)

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

Implementors§