Struct switchboard_aggregator::Context [−][src]
pub struct Context<'a, 'b, 'c, 'info, T> {
pub program_id: &'a Pubkey,
pub accounts: &'b mut T,
pub remaining_accounts: &'c [AccountInfo<'info>],
}
Expand description
Provides non-argument inputs to the program.
Fields
program_id: &'a Pubkey
Currently executing program id.
accounts: &'b mut T
Deserialized accounts.
remaining_accounts: &'c [AccountInfo<'info>]
Remaining accounts given but not deserialized or validated. Be very careful when using this directly.