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<'info> ToAccountMetas for AmountToUiAmount<'info>

§

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

§

impl<'info> ToAccountMetas for Approve<'info>

§

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

§

impl<'info> ToAccountMetas for Approve<'info>

§

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

§

impl<'info> ToAccountMetas for ApproveChecked<'info>

§

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

§

impl<'info> ToAccountMetas for Burn<'info>

§

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

§

impl<'info> ToAccountMetas for Burn<'info>

§

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

§

impl<'info> ToAccountMetas for CloseAccount<'info>

§

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

§

impl<'info> ToAccountMetas for CloseAccount<'info>

§

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

§

impl<'info> ToAccountMetas for Create<'info>

§

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

§

impl<'info> ToAccountMetas for FreezeAccount<'info>

§

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

§

impl<'info> ToAccountMetas for FreezeAccount<'info>

§

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

§

impl<'info> ToAccountMetas for GetAccountDataSize<'info>

§

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

§

impl<'info> ToAccountMetas for InitializeAccount3<'info>

§

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

§

impl<'info> ToAccountMetas for InitializeAccount3<'info>

§

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

§

impl<'info> ToAccountMetas for InitializeAccount<'info>

§

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

§

impl<'info> ToAccountMetas for InitializeAccount<'info>

§

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

§

impl<'info> ToAccountMetas for InitializeImmutableOwner<'info>

§

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

§

impl<'info> ToAccountMetas for InitializeMint2<'info>

§

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

§

impl<'info> ToAccountMetas for InitializeMint2<'info>

§

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

§

impl<'info> ToAccountMetas for InitializeMint<'info>

§

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

§

impl<'info> ToAccountMetas for InitializeMint<'info>

§

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

§

impl<'info> ToAccountMetas for InitializeMintCloseAuthority<'info>

§

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

§

impl<'info> ToAccountMetas for MintTo<'info>

§

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

§

impl<'info> ToAccountMetas for MintTo<'info>

§

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

§

impl<'info> ToAccountMetas for Revoke<'info>

§

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

§

impl<'info> ToAccountMetas for Revoke<'info>

§

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

§

impl<'info> ToAccountMetas for SetAuthority<'info>

§

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

§

impl<'info> ToAccountMetas for SetAuthority<'info>

§

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

§

impl<'info> ToAccountMetas for SyncNative<'info>

§

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

§

impl<'info> ToAccountMetas for SyncNative<'info>

§

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

§

impl<'info> ToAccountMetas for ThawAccount<'info>

§

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

§

impl<'info> ToAccountMetas for ThawAccount<'info>

§

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

§

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

§

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

§

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

§

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

§

impl<'info> ToAccountMetas for TransferChecked<'info>

§

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

§

impl<'info> ToAccountMetas for TransferChecked<'info>

§

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

§

impl<'info> ToAccountMetas for UiAmountToAmount<'info>

§

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

§

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

§

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

Implementors§

source§

impl ToAccountMetas for AttestationPermissionInitAccounts

source§

impl ToAccountMetas for AttestationPermissionSetAccounts

source§

impl ToAccountMetas for AttestationQueueAddMrEnclaveAccounts

source§

impl ToAccountMetas for AttestationQueueInitAccounts

source§

impl ToAccountMetas for FunctionVerifyAccounts

source§

impl ToAccountMetas for FunctionRequestInitAndTriggerAccounts

source§

impl ToAccountMetas for FunctionRequestVerifyAccounts

source§

impl ToAccountMetas for FunctionRoutineVerifyAccounts

source§

impl ToAccountMetas for ServiceRequestQuoteVerifyAccounts

source§

impl ToAccountMetas for FunctionServiceVerifyAccounts

source§

impl ToAccountMetas for VerifierHeartbeatAccounts

source§

impl ToAccountMetas for VerifierInitAccounts

source§

impl ToAccountMetas for VerifierQuoteRotateAccounts

source§

impl ToAccountMetas for VerifierQuoteVerifyAccounts

source§

impl ToAccountMetas for FunctionInitAccounts

source§

impl ToAccountMetas for SwitchboardWalletInitAccounts

§

impl ToAccountMetas for AccountMeta

source§

impl<'info> ToAccountMetas for AttestationPermissionInit<'info>

source§

impl<'info> ToAccountMetas for AttestationPermissionSet<'info>

source§

impl<'info> ToAccountMetas for AttestationQueueAddMrEnclave<'info>

source§

impl<'info> ToAccountMetas for AttestationQueueInit<'info>

source§

impl<'info> ToAccountMetas for FunctionClose<'info>

source§

impl<'info> ToAccountMetas for FunctionInit<'info>

source§

impl<'info> ToAccountMetas for FunctionSetConfig<'info>

source§

impl<'info> ToAccountMetas for FunctionSetEscrow<'info>

source§

impl<'info> ToAccountMetas for FunctionTrigger<'info>

source§

impl<'info> ToAccountMetas for FunctionVerify<'info>

source§

impl<'info> ToAccountMetas for FunctionRequestClose<'info>

source§

impl<'info> ToAccountMetas for FunctionRequestInit<'info>

source§

impl<'info> ToAccountMetas for FunctionRequestInitAndTrigger<'info>

source§

impl<'info> ToAccountMetas for FunctionRequestSetConfig<'info>

source§

impl<'info> ToAccountMetas for FunctionRequestTrigger<'info>

source§

impl<'info> ToAccountMetas for FunctionRequestVerify<'info>

source§

impl<'info> ToAccountMetas for FunctionRoutineInit<'info>

source§

impl<'info> ToAccountMetas for FunctionRoutineVerify<'info>

source§

impl<'info> ToAccountMetas for ServiceRequestQuoteVerify<'info>

source§

impl<'info> ToAccountMetas for FunctionServiceVerify<'info>

source§

impl<'info> ToAccountMetas for VerifierHeartbeat<'info>

source§

impl<'info> ToAccountMetas for VerifierInit<'info>

source§

impl<'info> ToAccountMetas for VerifierQuoteRotate<'info>

source§

impl<'info> ToAccountMetas for VerifierQuoteVerify<'info>

source§

impl<'info> ToAccountMetas for WalletFund<'info>

source§

impl<'info> ToAccountMetas for WalletInit<'info>

source§

impl<'info> ToAccountMetas for WalletWithdraw<'info>

source§

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

source§

impl<'info> ToAccountMetas for VrfClose<'info>

source§

impl<'info> ToAccountMetas for VrfLiteClose<'info>

source§

impl<'info> ToAccountMetas for VrfLiteRequestRandomness<'info>

source§

impl<'info> ToAccountMetas for VrfPoolRemove<'info>

source§

impl<'info> ToAccountMetas for VrfPoolRequestRandomness<'info>

source§

impl<'info> ToAccountMetas for VrfRequestRandomness<'info>

source§

impl<'info> ToAccountMetas for VrfSetCallback<'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,