Struct anchor_spl::dex::Context[][src]

pub struct Context<'a, 'info> {
    pub program_id: &'a Pubkey,
    pub dex_program_id: &'a Pubkey,
    pub accounts: Vec<AccountInfo<'info>>,
    pub seeds: Vec<Vec<Vec<u8>>>,
    pub pre_instructions: Vec<(Instruction, Vec<AccountInfo<'info>>, Vec<Vec<Vec<u8>>>)>,
    pub post_instructions: Vec<(Instruction, Vec<AccountInfo<'info>>, Vec<Vec<Vec<u8>>>)>,
}
Expand description

Per request context. Can be used to share data between middleware handlers.

Fields

program_id: &'a Pubkeydex_program_id: &'a Pubkeyaccounts: Vec<AccountInfo<'info>>seeds: Vec<Vec<Vec<u8>>>pre_instructions: Vec<(Instruction, Vec<AccountInfo<'info>>, Vec<Vec<Vec<u8>>>)>post_instructions: Vec<(Instruction, Vec<AccountInfo<'info>>, Vec<Vec<Vec<u8>>>)>

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

Performs the conversion.

Performs the conversion.

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.