pub struct SharedAccounts<'a, AI>where
AI: AccountInfoTrait,{
pub fee_payer: &'a AI,
pub cpi_signer: CpiSigner,
pub proof: &'a CreateAccountsProof,
pub program_id: [u8; 32],
pub compression_config: Option<&'a AI>,
pub compressible_config: Option<&'a AI>,
pub rent_sponsor: Option<&'a AI>,
pub cpi_authority: Option<&'a AI>,
pub system_program: Option<&'a AI>,
}Expand description
Shared accounts needed across all account creation operations.
Fields§
§fee_payer: &'a AIFee payer for the transaction.
cpi_signer: CpiSignerCPI signer for the program.
proof: &'a CreateAccountsProofProof data containing tree indices, validity proof, etc.
program_id: [u8; 32]Program ID (as raw bytes).
compression_config: Option<&'a AI>Compression config account. Required if PDAS > 0.
compressible_config: Option<&'a AI>Compressible config account. Required if MINTS > 0 or TOKENS > 0 or ATAS > 0.
rent_sponsor: Option<&'a AI>Rent sponsor account. Required if MINTS > 0 or TOKENS > 0 or ATAS > 0.
CPI authority account. Required if MINTS > 0.
system_program: Option<&'a AI>System program account. Required if TOKENS > 0 or ATAS > 0.
Auto Trait Implementations§
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