pub trait Bech32Object<T: Clone + Debug + ToBytes + FromBytes + PartialEq + Eq + Sync + Send>: From<T> + Deref<Target = T> + Clone + Debug + Display + ToBytes + FromBytes + PartialEq + Eq + Serialize + DeserializeOwned + Sync + Send {
    // Required methods
    fn prefix() -> String;
    fn size_in_bytes() -> usize;
}

Required Methods§

Implementors§

source§

impl<T: Clone + Debug + ToBytes + FromBytes + PartialEq + Eq + Sync + Send, const PREFIX: u32, const SIZE_IN_DATA_BYTES: usize> Bech32Object<T> for AleoObject<T, PREFIX, SIZE_IN_DATA_BYTES>