Struct solana_sdk::account::Account
source · #[repr(C)]pub struct Account {
pub tokens: u64,
pub userdata: Vec<u8>,
pub owner: Pubkey,
pub executable: bool,
pub loader: Pubkey,
}
Expand description
An Account with userdata that is stored on chain
Fields
tokens: u64
tokens in the account
userdata: Vec<u8>
data held in this account
owner: Pubkey
the program that owns this account
executable: bool
this account’s userdata contains a loaded program (and is now read-only)
loader: Pubkey
the loader for this account (Pubkey::default() if the account is not executable and thus was never ‘loaded’)
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Account
impl<'de> Deserialize<'de> for Account
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more