pub trait SerializableTransaction: Serialize {
// Required methods
fn get_signature(&self) -> &Signature;
fn get_recent_blockhash(&self) -> &Hash;
fn uses_durable_nonce(&self) -> bool;
}
Expand description
Trait used to add support for versioned transactions to RPC APIs while retaining backwards compatibility
Required Methods§
fn get_signature(&self) -> &Signature
fn get_recent_blockhash(&self) -> &Hash
fn uses_durable_nonce(&self) -> bool
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.