Struct solana_sdk::account::Account
source · #[repr(C)]pub struct Account {
pub tokens: i64,
pub userdata: Vec<u8>,
pub program_id: Pubkey,
pub executable: bool,
pub loader_program_id: Pubkey,
}
Expand description
An Account with userdata that is stored on chain
Fields
tokens: i64
tokens in the account
userdata: Vec<u8>
user data A transaction can write to its userdata
program_id: Pubkey
contract id this contract belongs to
executable: bool
this account contains a program (and is strictly read-only)
loader_program_id: Pubkey
the loader for this program (Pubkey::default() for no loader)
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