Struct spl_token::state::Account [−][src]
#[repr(C)]pub struct Account { pub mint: Pubkey, pub owner: Pubkey, pub amount: u64, pub delegate: COption<Pubkey>, pub state: AccountState, pub is_native: COption<u64>, pub delegated_amount: u64, pub close_authority: COption<Pubkey>, }
Expand description
Account data.
Fields
mint: PubkeyThe mint associated with this account
owner: PubkeyThe owner of this account.
amount: u64The amount of tokens this account holds.
delegate: COption<Pubkey>If delegate is Some then delegated_amount represents
the amount authorized by the delegate
state: AccountStateThe account’s state
is_native: COption<u64>If is_some, this is a native token, and the value logs the rent-exempt reserve. An Account is required to be rent-exempt, so the value is used by the Processor to ensure that wrapped SOL accounts do not drop below this threshold.
delegated_amount: u64The amount delegated
Optional authority to close the account.
Implementations
Trait Implementations
Is initialized
Get the packed length
Unpack from slice and check if initialized
Unpack from slice without checking if initialized
Auto Trait Implementations
impl RefUnwindSafe for Account
impl UnwindSafe for Account
Blanket Implementations
Mutably borrows from an owned value. Read more