pub struct CreateCpiAccounts<'a, 'b> {
pub metadata: &'b AccountInfo<'a>,
pub master_edition: Option<&'b AccountInfo<'a>>,
pub mint: (&'b AccountInfo<'a>, bool),
pub authority: &'b AccountInfo<'a>,
pub payer: &'b AccountInfo<'a>,
pub update_authority: (&'b AccountInfo<'a>, bool),
pub system_program: &'b AccountInfo<'a>,
pub sysvar_instructions: &'b AccountInfo<'a>,
pub spl_token_program: Option<&'b AccountInfo<'a>>,
}Expand description
create CPI accounts.
Fields§
§metadata: &'b AccountInfo<'a>Unallocated metadata account with address as pda of [‘metadata’, program id, mint id]
master_edition: Option<&'b AccountInfo<'a>>Unallocated edition account with address as pda of [‘metadata’, program id, mint, ‘edition’]
mint: (&'b AccountInfo<'a>, bool)Mint of token asset
Mint authority
payer: &'b AccountInfo<'a>Payer
Update authority for the metadata account
system_program: &'b AccountInfo<'a>System program
sysvar_instructions: &'b AccountInfo<'a>Instructions sysvar account
spl_token_program: Option<&'b AccountInfo<'a>>SPL Token program
Auto Trait Implementations§
impl<'a, 'b> Freeze for CreateCpiAccounts<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for CreateCpiAccounts<'a, 'b>
impl<'a, 'b> !Send for CreateCpiAccounts<'a, 'b>
impl<'a, 'b> !Sync for CreateCpiAccounts<'a, 'b>
impl<'a, 'b> Unpin for CreateCpiAccounts<'a, 'b>
impl<'a, 'b> UnsafeUnpin for CreateCpiAccounts<'a, 'b>
impl<'a, 'b> !UnwindSafe for CreateCpiAccounts<'a, 'b>
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