IntoToplevel

Trait IntoToplevel 

pub trait IntoToplevel: Sized {
    type Toplevel: TransactionType + From<Self>;
}
Expand description

A trait that allows the leaf tx types to state their toplevel type. This enables type inference on TransactionBuilder::with_tx etc.

Required Associated Types§

type Toplevel: TransactionType + From<Self>

Toplevel type this (leaf) transaction type belongs to

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.

Implementors§

§

impl IntoToplevel for BaseTransactionType

§

impl IntoToplevel for DelegationType

§

impl IntoToplevel for DomainAgreementType

§

impl IntoToplevel for MigrationTransactionType

§

impl IntoToplevel for StateDiffTransactionType

§

impl IntoToplevel for ValidatorType

§

impl IntoToplevel for BaseDebitType

§

impl IntoToplevel for AddStakeType

§

impl IntoToplevel for CreateDelegationType

§

impl IntoToplevel for HarvestRewardType

§

impl IntoToplevel for RemoveStakeType

§

impl IntoToplevel for SetCompoundRewardType

§

impl IntoToplevel for UnbondDelegationType

§

impl IntoToplevel for CreateDomainAgreementType

§

impl IntoToplevel for UpdateDomainAgreementType

§

impl IntoToplevel for VaultMigrationType

§

impl IntoToplevel for SubmitStateDiffProofType

§

impl IntoToplevel for SubmitStateDiffType

§

impl IntoToplevel for ChangeCommissionRateType

§

impl IntoToplevel for CreateValidatorType

§

impl IntoToplevel for UnbondValidatorType

§

impl IntoToplevel for WithdrawRewardsType