[][src]Struct solana_sdk::account_info::AccountInfo

pub struct AccountInfo<'a> {
    pub key: &'a Pubkey,
    pub is_signer: bool,
    pub lamports: &'a mut u64,
    pub data: &'a mut [u8],
    pub owner: &'a Pubkey,
}

AccountInfo

Fields

key: &'a Pubkey

Public key of the account

is_signer: bool

Public key of the account

lamports: &'a mut u64

Number of lamports owned by this account

data: &'a mut [u8]

On-chain data within this account

owner: &'a Pubkey

Program that owns this account

Methods

impl<'a> AccountInfo<'a>[src]

pub fn deserialize_data<T: DeserializeOwned>(&self) -> Result<T, Error>[src]

pub fn serialize_data<T: Serialize>(&mut self, state: &T) -> Result<(), Error>[src]

Trait Implementations

impl<'a> Debug for AccountInfo<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for AccountInfo<'a>

impl<'a> Send for AccountInfo<'a>

impl<'a> Sync for AccountInfo<'a>

impl<'a> Unpin for AccountInfo<'a>

impl<'a> !UnwindSafe for AccountInfo<'a>

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.