pub struct TransferContext<'a, 'info, E = ()> {
pub program_id: &'a Pubkey,
pub source_account: &'a AccountInfo<'info>,
pub mint: &'a AccountInfo<'info>,
pub destination_account: &'a AccountInfo<'info>,
pub authority: &'a AccountInfo<'info>,
pub extra_account_metas: &'a AccountInfo<'info>,
pub amount: u64,
pub extra_metas: E,
}Fields§
§program_id: &'a Pubkey§source_account: &'a AccountInfo<'info>§mint: &'a AccountInfo<'info>§destination_account: &'a AccountInfo<'info>§extra_account_metas: &'a AccountInfo<'info>§amount: u64§extra_metas: EAuto Trait Implementations§
impl<'a, 'info, E = ()> !RefUnwindSafe for TransferContext<'a, 'info, E>
impl<'a, 'info, E = ()> !Send for TransferContext<'a, 'info, E>
impl<'a, 'info, E = ()> !Sync for TransferContext<'a, 'info, E>
impl<'a, 'info, E = ()> !UnwindSafe for TransferContext<'a, 'info, E>
impl<'a, 'info, E> Freeze for TransferContext<'a, 'info, E>where
E: Freeze,
impl<'a, 'info, E> Unpin for TransferContext<'a, 'info, E>where
E: Unpin,
impl<'a, 'info, E> UnsafeUnpin for TransferContext<'a, 'info, E>where
E: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more