pub struct ActionContext<'a, 'b, 'c, 'info, T> {
    pub program_id: &'a Pubkey,
    pub action: &'b T,
    pub remaining_accounts: &'c [AccountInfo<'info>],
    pub token_program: AccountInfo<'info>,
    pub swap_program: AccountInfo<'info>,
    pub owner: AccountInfo<'info>,
}

Fields

program_id: &'a Pubkey

Currently executing program id.

action: &'b T

Deserialized accounts.

remaining_accounts: &'c [AccountInfo<'info>]

Remaining accounts given but not deserialized or validated. Be very careful when using this directly.

token_program: AccountInfo<'info>

The spl_token program.

swap_program: AccountInfo<'info>

The relevant swap program.

owner: AccountInfo<'info>

The owner of all involved token accounts.

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

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.