pub trait FromGenericPair {
    // Required method
    fn from_generic_pair(tag: Vec<u8>, data: Vec<u8>) -> Self;
}
Expand description

Abstract trait to get data type from generic pair name and data.

Required Methods§

source

fn from_generic_pair(tag: Vec<u8>, data: Vec<u8>) -> Self

Implementors§

source§

impl<AccountId, AssetId, DEXId> FromGenericPair for TechAccountId<AccountId, AssetId, DEXId>

Implementation of FromGenericPair for cases when trait method is better than data type constructor.