Struct anchor_spl::token::Burn [−][src]
pub struct Burn<'info> { pub mint: AccountInfo<'info>, pub to: AccountInfo<'info>, pub authority: AccountInfo<'info>, }
Fields
mint: AccountInfo<'info>
to: AccountInfo<'info>
Trait Implementations
impl<'info> Accounts<'info> for Burn<'info>
[src]
impl<'info> Accounts<'info> for Burn<'info>
[src]fn try_accounts(
program_id: &Pubkey,
accounts: &mut &[AccountInfo<'info>]
) -> Result<Self, ProgramError>
[src]
fn try_accounts(
program_id: &Pubkey,
accounts: &mut &[AccountInfo<'info>]
) -> Result<Self, ProgramError>
[src]Returns the validated accounts struct. What constitutes “valid” is
program dependent. However, users of these types should never have to
worry about account substitution attacks. For example, if a program
expects a Mint
account from the SPL token program in a particular
field, then it should be impossible for this method to return Ok
if
any other account type is given–from the SPL token program or elsewhere. Read more
impl<'info> AccountsExit<'info> for Burn<'info>
[src]
impl<'info> AccountsExit<'info> for Burn<'info>
[src]fn exit(&self, program_id: &Pubkey) -> ProgramResult
[src]
fn exit(&self, program_id: &Pubkey) -> ProgramResult
[src]program_id
is the currently executing program.
impl<'info> ToAccountInfos<'info> for Burn<'info>
[src]
impl<'info> ToAccountInfos<'info> for Burn<'info>
[src]fn to_account_infos(&self) -> Vec<AccountInfo<'info>>
[src]
impl<'info> ToAccountMetas for Burn<'info>
[src]
impl<'info> ToAccountMetas for Burn<'info>
[src]fn to_account_metas(&self, is_signer: Option<bool>) -> Vec<AccountMeta>
[src]
fn to_account_metas(&self, is_signer: Option<bool>) -> Vec<AccountMeta>
[src]is_signer
is given as an optional override for the signer meta field.
This covers the edge case when a program-derived-address needs to relay
a transaction from a client to another program but sign the transaction
before the relay. The client cannot mark the field as a signer, and so
we have to override the is_signer meta field given by the client. Read more
Auto Trait Implementations
impl<'info> !RefUnwindSafe for Burn<'info>
impl<'info> !Send for Burn<'info>
impl<'info> !Sync for Burn<'info>
impl<'info> Unpin for Burn<'info>
impl<'info> !UnwindSafe for Burn<'info>
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,