[−][src]Struct solana_sdk::account_info::AccountInfo
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,