Struct dex_v4::instruction_auto::settle::Accounts
source · pub struct Accounts<'a, T> {
pub spl_token_program: &'a T,
pub market: &'a T,
pub base_vault: &'a T,
pub quote_vault: &'a T,
pub market_signer: &'a T,
pub user: &'a T,
pub user_owner: &'a T,
pub destination_base_account: &'a T,
pub destination_quote_account: &'a T,
}
Fields
spl_token_program: &'a T
The spl token program
market: &'a T
The DEX market
base_vault: &'a T
The base token vault
quote_vault: &'a T
The quote token vault
market_signer: &'a T
The DEX market signer account
user: &'a T
The DEX user account
user_owner: &'a T
The DEX user account owner wallet
destination_base_account: &'a T
The destination base token account
destination_quote_account: &'a T
The destination quote token account
Implementations
sourceimpl<'a, 'b: 'a> Accounts<'a, AccountInfo<'b>>
impl<'a, 'b: 'a> Accounts<'a, AccountInfo<'b>>
pub fn parse(
program_id: &Pubkey,
accounts: &'a [AccountInfo<'b>]
) -> Result<Self, ProgramError>
pub fn load_user_account(
&self,
user_account_data: &'a mut [u8]
) -> Result<UserAccount<'a>, ProgramError>
Trait Implementations
sourceimpl<'a> InstructionsAccount for Accounts<'a, Pubkey>
impl<'a> InstructionsAccount for Accounts<'a, Pubkey>
fn get_accounts_vec(&self) -> Vec<AccountMeta>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
fn get_instruction<P>(
&self,
program_id: Pubkey,
instruction_id: u8,
params: P
) -> Instructionwhere
P: BorshDeserialize + BorshSerialize + BorshSize,
fn get_instruction_cast<P>(
&self,
program_id: Pubkey,
instruction_id: u8,
params: P
) -> Instructionwhere
P: NoUninit,
fn get_instruction_wrapped_pod<'a, P>(
&self,
program_id: Pubkey,
instruction_id: u8,
params: P
) -> Instructionwhere
P: WrappedPod<'a>,
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Accounts<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Accounts<'a, T>where
T: Sync,
impl<'a, T> Sync for Accounts<'a, T>where
T: Sync,
impl<'a, T> Unpin for Accounts<'a, T>
impl<'a, T> UnwindSafe for Accounts<'a, T>where
T: RefUnwindSafe,
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
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