pub struct SetAndVerifyCollectionCpiBuilder<'a, 'b> { /* private fields */ }
Expand description
Instruction builder for SetAndVerifyCollection
via CPI.
Accounts:
[writable]
metadata[writable, signer]
collection_authority[writable, signer]
payer[]
update_authority[]
collection_mint[]
collection[]
collection_master_edition_account[optional]
collection_authority_record
Implementations§
source§impl<'a, 'b> SetAndVerifyCollectionCpiBuilder<'a, 'b>
impl<'a, 'b> SetAndVerifyCollectionCpiBuilder<'a, 'b>
pub fn new(program: &'b AccountInfo<'a>) -> Self
sourcepub fn metadata(&mut self, metadata: &'b AccountInfo<'a>) -> &mut Self
pub fn metadata(&mut self, metadata: &'b AccountInfo<'a>) -> &mut Self
Metadata account
Collection Update authority
sourcepub fn payer(&mut self, payer: &'b AccountInfo<'a>) -> &mut Self
pub fn payer(&mut self, payer: &'b AccountInfo<'a>) -> &mut Self
Payer
Update Authority of Collection NFT and NFT
sourcepub fn collection_mint(
&mut self,
collection_mint: &'b AccountInfo<'a>
) -> &mut Self
pub fn collection_mint( &mut self, collection_mint: &'b AccountInfo<'a> ) -> &mut Self
Mint of the Collection
sourcepub fn collection(&mut self, collection: &'b AccountInfo<'a>) -> &mut Self
pub fn collection(&mut self, collection: &'b AccountInfo<'a>) -> &mut Self
Metadata Account of the Collection
sourcepub fn collection_master_edition_account(
&mut self,
collection_master_edition_account: &'b AccountInfo<'a>
) -> &mut Self
pub fn collection_master_edition_account( &mut self, collection_master_edition_account: &'b AccountInfo<'a> ) -> &mut Self
MasterEdition2 Account of the Collection Token
[optional account]
Collection Authority Record PDA
sourcepub fn add_remaining_account(
&mut self,
account: &'b AccountInfo<'a>,
is_writable: bool,
is_signer: bool
) -> &mut Self
pub fn add_remaining_account( &mut self, account: &'b AccountInfo<'a>, is_writable: bool, is_signer: bool ) -> &mut Self
Add an additional account to the instruction.
sourcepub fn add_remaining_accounts(
&mut self,
accounts: &[(&'b AccountInfo<'a>, bool, bool)]
) -> &mut Self
pub fn add_remaining_accounts( &mut self, accounts: &[(&'b AccountInfo<'a>, bool, bool)] ) -> &mut Self
Add additional accounts to the instruction.
Each account is represented by a tuple of the AccountInfo
, a bool
indicating whether the account is writable or not,
and a bool
indicating whether the account is a signer or not.
pub fn invoke(&self) -> ProgramResult
pub fn invoke_signed(&self, signers_seeds: &[&[&[u8]]]) -> ProgramResult
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for SetAndVerifyCollectionCpiBuilder<'a, 'b>
impl<'a, 'b> !Send for SetAndVerifyCollectionCpiBuilder<'a, 'b>
impl<'a, 'b> !Sync for SetAndVerifyCollectionCpiBuilder<'a, 'b>
impl<'a, 'b> Unpin for SetAndVerifyCollectionCpiBuilder<'a, 'b>
impl<'a, 'b> !UnwindSafe for SetAndVerifyCollectionCpiBuilder<'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