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

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
OSZAR »