Struct jet_margin::cpi::accounts::TransferDeposit
source · [−]pub struct TransferDeposit<'info> {
pub owner: AccountInfo<'info>,
pub margin_account: AccountInfo<'info>,
pub source_owner: AccountInfo<'info>,
pub source: AccountInfo<'info>,
pub destination: AccountInfo<'info>,
pub token_program: AccountInfo<'info>,
}
Expand description
Generated CPI struct of the accounts for TransferDeposit
.
Fields
owner: AccountInfo<'info>
The authority that owns the margin account
margin_account: AccountInfo<'info>
The margin account that the deposit account is associated with
source_owner: AccountInfo<'info>
The authority for the source account
source: AccountInfo<'info>
The source account to transfer tokens from
destination: AccountInfo<'info>
The destination account to transfer tokens in
token_program: AccountInfo<'info>
Trait Implementations
sourceimpl<'info> ToAccountInfos<'info> for TransferDeposit<'info>
impl<'info> ToAccountInfos<'info> for TransferDeposit<'info>
sourceimpl<'info> ToAccountMetas for TransferDeposit<'info>
impl<'info> ToAccountMetas for TransferDeposit<'info>
sourcefn to_account_metas(&self, is_signer: Option<bool>) -> Vec<AccountMeta>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn to_account_metas(&self, is_signer: Option<bool>) -> Vec<AccountMeta>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
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 moreAuto Trait Implementations
impl<'info> !RefUnwindSafe for TransferDeposit<'info>
impl<'info> !Send for TransferDeposit<'info>
impl<'info> !Sync for TransferDeposit<'info>
impl<'info> Unpin for TransferDeposit<'info>
impl<'info> !UnwindSafe for TransferDeposit<'info>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more