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