pub trait ToAccountMetas {
    // Required method
    fn to_account_metas(&self, is_signer: Option<bool>) -> Vec<AccountMeta>;
}
Expand description

Transformation to AccountMeta structs.

Required Methods§

fn to_account_metas(&self, is_signer: Option<bool>) -> Vec<AccountMeta>

is_signer is given as an optional override for the signer meta field. This covers the edge case when a program-derived-address needs to relay a transaction from a client to another program but sign the transaction before the relay. The client cannot mark the field as a signer, and so we have to override the is_signer meta field given by the client.

Implementations on Foreign Types§

§

impl<T> ToAccountMetas for Option<T>
where T: ToAccountMetas,

§

fn to_account_metas(&self, is_signer: Option<bool>) -> Vec<AccountMeta>

Implementors§

§

impl ToAccountMetas for AccountMeta

source§

impl<'info> ToAccountMetas for PermissionSet<'info>

§

impl<'info> ToAccountMetas for AccountInfo<'info>

§

impl<'info> ToAccountMetas for Signer<'info>

§

impl<'info> ToAccountMetas for SystemAccount<'info>

§

impl<'info> ToAccountMetas for UncheckedAccount<'info>

§

impl<'info> ToAccountMetas for AdvanceNonceAccount<'info>

§

impl<'info> ToAccountMetas for Allocate<'info>

§

impl<'info> ToAccountMetas for AllocateWithSeed<'info>

§

impl<'info> ToAccountMetas for Assign<'info>

§

impl<'info> ToAccountMetas for AssignWithSeed<'info>

§

impl<'info> ToAccountMetas for AuthorizeNonceAccount<'info>

§

impl<'info> ToAccountMetas for CreateAccount<'info>

§

impl<'info> ToAccountMetas for CreateAccountWithSeed<'info>

§

impl<'info> ToAccountMetas for CreateNonceAccount<'info>

§

impl<'info> ToAccountMetas for CreateNonceAccountWithSeed<'info>

§

impl<'info> ToAccountMetas for Transfer<'info>

§

impl<'info> ToAccountMetas for TransferWithSeed<'info>

§

impl<'info> ToAccountMetas for WithdrawNonceAccount<'info>

§

impl<'info, T> ToAccountMetas for Account<'info, T>

§

impl<'info, T> ToAccountMetas for AccountLoader<'info, T>
where T: ZeroCopy + Owner,

§

impl<'info, T> ToAccountMetas for CpiContext<'_, '_, '_, 'info, T>
where T: ToAccountInfos<'info> + ToAccountMetas,

§

impl<'info, T> ToAccountMetas for Interface<'info, T>

§

impl<'info, T> ToAccountMetas for InterfaceAccount<'info, T>

§

impl<'info, T> ToAccountMetas for Program<'info, T>

§

impl<'info, T> ToAccountMetas for Sysvar<'info, T>
where T: Sysvar,

§

impl<T> ToAccountMetas for Box<T>
where T: ToAccountMetas,

§

impl<T> ToAccountMetas for Vec<T>
where T: ToAccountMetas,