pub struct WithdrawWithheldTokensFromAccounts<'a> {
pub mint: &'a AccountView<'a>,
pub destination: &'a AccountView<'a>,
pub withdraw_withheld_authority: &'a AccountView<'a>,
pub sources: &'a [&'a AccountView<'a>],
}Expand description
TransferFeeExtension::WithdrawWithheldTokensFromAccounts (26/3): move
the fees withheld in sources (writable token accounts of mint) to
destination.
Fields§
§mint: &'a AccountView<'a>§destination: &'a AccountView<'a>§sources: &'a [&'a AccountView<'a>]Implementations§
Source§impl WithdrawWithheldTokensFromAccounts<'_>
impl WithdrawWithheldTokensFromAccounts<'_>
Sourcepub fn invoke(&self) -> ProgramResult
pub fn invoke(&self) -> ProgramResult
Send this instruction to Token-2022 with the authority
signed directly. Fails with MissingRequiredSignature
before the CPI if it is not.
Sourcepub fn invoke_signed(&self, signers: &[Signer<'_, '_>]) -> ProgramResult
pub fn invoke_signed(&self, signers: &[Signer<'_, '_>]) -> ProgramResult
Send this instruction to Token-2022 with PDA signers.
Sourcepub fn invoke_multisig(
&self,
multisig_signers: &[&AccountView<'_>],
) -> ProgramResult
pub fn invoke_multisig( &self, multisig_signers: &[&AccountView<'_>], ) -> ProgramResult
Send this instruction to Token-2022 with a multisig authority whose signers signed directly.
Sourcepub fn invoke_signed_multisig(
&self,
multisig_signers: &[&AccountView<'_>],
signers: &[Signer<'_, '_>],
) -> ProgramResult
pub fn invoke_signed_multisig( &self, multisig_signers: &[&AccountView<'_>], signers: &[Signer<'_, '_>], ) -> ProgramResult
Send this instruction to Token-2022 with a multisig authority and PDA signers.
Trait Implementations§
Source§impl<'a, 'x: 'a> TokenInstruction<'a> for WithdrawWithheldTokensFromAccounts<'x>
impl<'a, 'x: 'a> TokenInstruction<'a> for WithdrawWithheldTokensFromAccounts<'x>
fn emit( &self, multisig_signers: &[&'a AccountView<'a>], sink: &mut impl TokenSink<'a>, ) -> ProgramResult
Auto Trait Implementations§
impl<'a> !Send for WithdrawWithheldTokensFromAccounts<'a>
impl<'a> !Sync for WithdrawWithheldTokensFromAccounts<'a>
impl<'a> Freeze for WithdrawWithheldTokensFromAccounts<'a>
impl<'a> RefUnwindSafe for WithdrawWithheldTokensFromAccounts<'a>
impl<'a> Unpin for WithdrawWithheldTokensFromAccounts<'a>
impl<'a> UnsafeUnpin for WithdrawWithheldTokensFromAccounts<'a>
impl<'a> UnwindSafe for WithdrawWithheldTokensFromAccounts<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more