Trait concordium_std::schema::SchemaType[][src]

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

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

Loading content...

Implementations on Foreign Types

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

impl SchemaType for i128[src]

pub fn get_type() -> Type[src]

impl SchemaType for i16[src]

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

impl SchemaType for i64[src]

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

impl SchemaType for u128[src]

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

impl SchemaType for ()[src]

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

impl SchemaType for bool[src]

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

impl SchemaType for [u8][src]

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

impl SchemaType for i32[src]

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

impl SchemaType for u8[src]

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

impl SchemaType for i8[src]

pub fn get_type() -> Type[src]

impl SchemaType for u64[src]

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

impl SchemaType for u32[src]

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

impl SchemaType for u16[src]

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

Loading content...

Implementors

impl SchemaType for AccountAddress[src]

pub fn get_type() -> Type[src]

impl SchemaType for Amount[src]

pub fn get_type() -> Type[src]

impl SchemaType for ContractAddress[src]

pub fn get_type() -> Type[src]

impl SchemaType for Duration[src]

pub fn get_type() -> Type[src]

impl SchemaType for OwnedContractName[src]

pub fn get_type() -> Type[src]

impl SchemaType for OwnedReceiveName[src]

pub fn get_type() -> Type[src]

impl SchemaType for String[src]

pub fn get_type() -> Type[src]

impl SchemaType for Timestamp[src]

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

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

pub fn get_type() -> Type[src]

impl<T> SchemaType for Vec<T, Global> where
    T: SchemaType
[src]

pub fn get_type() -> Type[src]

Loading content...