pub trait Architecture: Serialize + for<'de> Deserialize<'de> {
type Address: Eq + Serialize + for<'de> Deserialize<'de> + From<Self::AddressRaw>;
type AddressRaw: Eq + Serialize + for<'de> Deserialize<'de> + From<Self::Address>;
type TransactionRequest: GetSender<Self> + GetReceiver<Self> + Serialize + for<'de> Deserialize<'de> + Parse<Self> + TryParse<Self>;
}Expand description
Trait for defining important types associated with an architecture.
Required Associated Types§
Sourcetype Address: Eq + Serialize + for<'de> Deserialize<'de> + From<Self::AddressRaw>
type Address: Eq + Serialize + for<'de> Deserialize<'de> + From<Self::AddressRaw>
Account type for that chain(SS58, H160, etc)
Sourcetype AddressRaw: Eq + Serialize + for<'de> Deserialize<'de> + From<Self::Address>
type AddressRaw: Eq + Serialize + for<'de> Deserialize<'de> + From<Self::Address>
Account type as it is stored in the database
Sourcetype TransactionRequest: GetSender<Self> + GetReceiver<Self> + Serialize + for<'de> Deserialize<'de> + Parse<Self> + TryParse<Self>
type TransactionRequest: GetSender<Self> + GetReceiver<Self> + Serialize + for<'de> Deserialize<'de> + Parse<Self> + TryParse<Self>
Transaction request type for unsigned transactions
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.