Trait DecodableWithMeta

Source
pub trait DecodableWithMeta {
    type Encoded;
    type Decoded;

    // Required methods
    fn decode_with_meta(
        encoded: Self::Encoded,
        encoding: UiTransactionEncoding,
        version: Option<TransactionVersion>,
    ) -> Result<Self::Decoded, DecodeError>;
    fn json_decode(
        encoded: Self::Encoded,
        version: Option<TransactionVersion>,
    ) -> Result<Self::Decoded, DecodeError>;
}

Required Associated Types§

Required Methods§

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.

Implementations on Foreign Types§

Source§

impl DecodableWithMeta for Message

Source§

impl DecodableWithMeta for VersionedTransaction

Implementors§