miraland_geyser_plugin_postgres::postgres_client

Trait ReadableAccountInfo

Source
pub trait ReadableAccountInfo: Sized {
    // Required methods
    fn pubkey(&self) -> &[u8] ;
    fn owner(&self) -> &[u8] ;
    fn lamports(&self) -> i64;
    fn executable(&self) -> bool;
    fn rent_epoch(&self) -> i64;
    fn data(&self) -> &[u8] ;
    fn write_version(&self) -> i64;
    fn txn_signature(&self) -> Option<&[u8]>;
}

Required Methods§

Source

fn pubkey(&self) -> &[u8]

Source

fn owner(&self) -> &[u8]

Source

fn lamports(&self) -> i64

Source

fn executable(&self) -> bool

Source

fn rent_epoch(&self) -> i64

Source

fn data(&self) -> &[u8]

Source

fn write_version(&self) -> i64

Source

fn txn_signature(&self) -> Option<&[u8]>

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<'a> ReadableAccountInfo for ReplicaAccountInfoV3<'a>

Source§

fn pubkey(&self) -> &[u8]

Source§

fn owner(&self) -> &[u8]

Source§

fn lamports(&self) -> i64

Source§

fn executable(&self) -> bool

Source§

fn rent_epoch(&self) -> i64

Source§

fn data(&self) -> &[u8]

Source§

fn write_version(&self) -> i64

Source§

fn txn_signature(&self) -> Option<&[u8]>

Implementors§