[][src]Trait concordium_contracts_common::schema::SchemaType

pub trait SchemaType {
    pub fn get_type() -> Type;
}

The SchemaType trait provides means to generate a schema for structures. Schemas are used to make structures human readable and to avoid dealing directly with bytes, such as the contract state or parameters for contract interaction.

Can be derived using #[derive(SchemaType)] for most cases of structs and enums.

Required methods

pub fn get_type() -> Type[src]

Loading content...

Implementations on Foreign Types

impl SchemaType for ()[src]

impl SchemaType for bool[src]

impl SchemaType for u8[src]

impl SchemaType for u16[src]

impl SchemaType for u32[src]

impl SchemaType for u64[src]

impl SchemaType for i8[src]

impl SchemaType for i16[src]

impl SchemaType for i32[src]

impl SchemaType for i64[src]

impl<T: SchemaType> SchemaType for Option<T>[src]

impl<L: SchemaType, R: SchemaType> SchemaType for (L, R)[src]

impl<T: SchemaType> SchemaType for Vec<T>[src]

impl<T: SchemaType> SchemaType for BTreeSet<T>[src]

impl<K: SchemaType, V: SchemaType> SchemaType for BTreeMap<K, V>[src]

impl SchemaType for [u8][src]

impl<A: SchemaType> SchemaType for [A; 1][src]

impl<A: SchemaType> SchemaType for [A; 2][src]

impl<A: SchemaType> SchemaType for [A; 3][src]

impl<A: SchemaType> SchemaType for [A; 4][src]

impl<A: SchemaType> SchemaType for [A; 5][src]

impl<A: SchemaType> SchemaType for [A; 6][src]

impl<A: SchemaType> SchemaType for [A; 7][src]

impl<A: SchemaType> SchemaType for [A; 8][src]

impl<A: SchemaType> SchemaType for [A; 9][src]

impl<A: SchemaType> SchemaType for [A; 10][src]

impl<A: SchemaType> SchemaType for [A; 11][src]

impl<A: SchemaType> SchemaType for [A; 12][src]

impl<A: SchemaType> SchemaType for [A; 13][src]

impl<A: SchemaType> SchemaType for [A; 14][src]

impl<A: SchemaType> SchemaType for [A; 15][src]

impl<A: SchemaType> SchemaType for [A; 16][src]

impl<A: SchemaType> SchemaType for [A; 17][src]

impl<A: SchemaType> SchemaType for [A; 18][src]

impl<A: SchemaType> SchemaType for [A; 19][src]

impl<A: SchemaType> SchemaType for [A; 20][src]

impl<A: SchemaType> SchemaType for [A; 21][src]

impl<A: SchemaType> SchemaType for [A; 22][src]

impl<A: SchemaType> SchemaType for [A; 23][src]

impl<A: SchemaType> SchemaType for [A; 24][src]

impl<A: SchemaType> SchemaType for [A; 25][src]

impl<A: SchemaType> SchemaType for [A; 26][src]

impl<A: SchemaType> SchemaType for [A; 27][src]

impl<A: SchemaType> SchemaType for [A; 28][src]

impl<A: SchemaType> SchemaType for [A; 29][src]

impl<A: SchemaType> SchemaType for [A; 30][src]

impl<A: SchemaType> SchemaType for [A; 31][src]

impl<A: SchemaType> SchemaType for [A; 32][src]

Loading content...

Implementors

impl SchemaType for AccountAddress[src]

impl SchemaType for Amount[src]

impl SchemaType for ContractAddress[src]

impl SchemaType for Duration[src]

impl SchemaType for Timestamp[src]

Loading content...