hermes-encoding-components 0.1.0

Implementation of an IBC Relayer in Rust, as a library
Documentation
1
2
3
4
5
6
7
8
9
10
use core::marker::PhantomData;

use cgp::prelude::*;

use crate::traits::types::schema::HasSchemaType;

#[derive_component(SchemaGetterComponent, SchemaGetter<Encoding>)]
pub trait HasSchema<Value>: HasSchemaType {
    fn schema(&self, phantom: PhantomData<Value>) -> &Self::Schema;
}