pub trait Encodable {
    type Encoded;

    // Required method
    fn encode(&self, encoding: UiTransactionEncoding) -> Self::Encoded;
}
Expand description

Represents types that can be encoded into one of several encoding formats

Required Associated Types§

Required Methods§

source

fn encode(&self, encoding: UiTransactionEncoding) -> Self::Encoded

Implementations on Foreign Types§

source§

impl Encodable for Message

§

type Encoded = UiMessage

source§

fn encode(&self, encoding: UiTransactionEncoding) -> Self::Encoded

source§

impl Encodable for Transaction

Implementors§