pub struct CpiAccounts<'a, T: AccountInfoTrait> { /* private fields */ }Implementations§
Source§impl<'a, T: AccountInfoTrait> CpiAccounts<'a, T>
impl<'a, T: AccountInfoTrait> CpiAccounts<'a, T>
pub fn new(fee_payer: &'a T, accounts: &'a [T], cpi_signer: CpiSigner) -> Self
pub fn new_with_config( fee_payer: &'a T, accounts: &'a [T], config: CpiAccountsConfig, ) -> Self
pub fn fee_payer(&self) -> &'a T
pub fn light_system_program(&self) -> Result<&'a T>
pub fn invoking_program(&self) -> Result<&'a T>
pub fn registered_program_pda(&self) -> Result<&'a T>
pub fn noop_program(&self) -> Result<&'a T>
pub fn account_compression_program(&self) -> Result<&'a T>
pub fn sol_pool_pda(&self) -> Result<&'a T>
pub fn decompression_recipient(&self) -> Result<&'a T>
pub fn system_program(&self) -> Result<&'a T>
pub fn cpi_context(&self) -> Result<&'a T>
pub fn self_program_id(&self) -> T::Pubkey
pub fn bump(&self) -> u8
pub fn config(&self) -> &CpiAccountsConfig
pub fn system_accounts_len(&self) -> usize
pub fn account_infos(&self) -> &'a [T]
pub fn get_account_info(&self, index: usize) -> Result<&'a T>
pub fn tree_accounts(&self) -> Result<&'a [T]>
pub fn get_tree_account_info(&self, tree_index: usize) -> Result<&'a T>
Sourcepub fn to_account_infos(&self) -> Vec<&'a T>
pub fn to_account_infos(&self) -> Vec<&'a T>
Create a vector of account info references
Auto Trait Implementations§
impl<'a, T> Freeze for CpiAccounts<'a, T>
impl<'a, T> RefUnwindSafe for CpiAccounts<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for CpiAccounts<'a, T>where
T: Sync,
impl<'a, T> Sync for CpiAccounts<'a, T>where
T: Sync,
impl<'a, T> Unpin for CpiAccounts<'a, T>
impl<'a, T> UnwindSafe for CpiAccounts<'a, T>where
T: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more