[][src]Struct solana_runtime::message_processor::PreAccount

pub struct PreAccount {
    pub is_writable: bool,
    pub lamports: u64,
    pub data_len: usize,
    pub data: Option<Vec<u8>>,
    pub owner: Pubkey,
    pub executable: bool,
    pub rent_epoch: Epoch,
}

Fields

is_writable: boollamports: u64data_len: usizedata: Option<Vec<u8>>owner: Pubkeyexecutable: boolrent_epoch: Epoch

Methods

impl PreAccount[src]

pub fn new(account: &Account, is_writable: bool, program_id: &Pubkey) -> Self[src]

pub fn verify(
    &self,
    program_id: &Pubkey,
    post: &Account
) -> Result<(), InstructionError>
[src]

pub fn is_zeroed(buf: &[u8]) -> bool[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,