SchemaEvents

Trait SchemaEvents 

Source
pub trait SchemaEvents {
    // Provided methods
    fn schema_events() -> Vec<Event> { ... }
    fn custom_types() -> Vec<Option<CustomType>> { ... }
}
Expand description

Trait representing schema events.

Provided Methods§

Source

fn schema_events() -> Vec<Event>

Returns a vector of Events.

Source

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

Returns a vector of CustomTypes.

This method is used to define custom types that are used in the events. An event itself is a CustomType and can have a custom type as its payload.

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

Source§

impl SchemaEvents for Address

Source§

impl SchemaEvents for bool

Source§

impl SchemaEvents for i32

Source§

impl SchemaEvents for i64

Source§

impl SchemaEvents for u8

Source§

impl SchemaEvents for u32

Source§

impl SchemaEvents for u64

Source§

impl SchemaEvents for ()

Source§

impl SchemaEvents for String

Source§

impl SchemaEvents for Bytes

Source§

impl SchemaEvents for U128

Source§

impl SchemaEvents for U256

Source§

impl SchemaEvents for U512

Source§

impl<K: SchemaEvents, V> SchemaEvents for Mapping<K, V>

Source§

impl<M: SchemaEvents + ContractRef> SchemaEvents for External<M>

Source§

impl<M: SchemaEvents> SchemaEvents for SubModule<M>

Source§

impl<M: SchemaEvents> SchemaEvents for Var<M>

Source§

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

Source§

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

Source§

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

Source§

impl<T: Num + One + Zero + Default + Copy + ToBytes + FromBytes + CLTyped> SchemaEvents for Sequence<T>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<T: SchemaEvents> SchemaEvents for Maybe<T>

Source§

impl<V: SchemaEvents> SchemaEvents for List<V>

Source§

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

Implementors§