pub struct ApproveChecked<'a> {
pub source: &'a AccountView,
pub mint: &'a AccountView,
pub delegate: &'a AccountView,
pub authority: &'a AccountView,
pub amount: u64,
pub decimals: u8,
}Expand description
Approves a delegate.
§Accounts:
[WRITE]The source account.[]The token mint.[]The delegate.[SIGNER]The source account owner.
Fields§
§source: &'a AccountViewSource Account.
mint: &'a AccountViewMint Account.
delegate: &'a AccountViewDelegate Account.
Source Owner Account.
amount: u64Amount.
decimals: u8Decimals.
Implementations§
Source§impl ApproveChecked<'_>
impl ApproveChecked<'_>
pub fn invoke(&self) -> Result<(), ProgramError>
pub fn invoke_signed( &self, signers: &[Signer<'_, '_>], ) -> Result<(), ProgramError>
Auto Trait Implementations§
impl<'a> Freeze for ApproveChecked<'a>
impl<'a> RefUnwindSafe for ApproveChecked<'a>
impl<'a> !Send for ApproveChecked<'a>
impl<'a> !Sync for ApproveChecked<'a>
impl<'a> Unpin for ApproveChecked<'a>
impl<'a> UnsafeUnpin for ApproveChecked<'a>
impl<'a> UnwindSafe for ApproveChecked<'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