pub struct SetAndVerifyCollectionBuilder { /* private fields */ }Expand description
Instruction builder for SetAndVerifyCollection.
§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 SetAndVerifyCollectionBuilder
impl SetAndVerifyCollectionBuilder
pub fn new() -> Self
Collection Update authority
Update Authority of Collection NFT and NFT
Sourcepub fn collection_mint(&mut self, collection_mint: Pubkey) -> &mut Self
pub fn collection_mint(&mut self, collection_mint: Pubkey) -> &mut Self
Mint of the Collection
Sourcepub fn collection(&mut self, collection: Pubkey) -> &mut Self
pub fn collection(&mut self, collection: Pubkey) -> &mut Self
Metadata Account of the Collection
Sourcepub fn collection_master_edition_account(
&mut self,
collection_master_edition_account: Pubkey,
) -> &mut Self
pub fn collection_master_edition_account( &mut self, collection_master_edition_account: Pubkey, ) -> &mut Self
MasterEdition2 Account of the Collection Token
[optional account]
Collection Authority Record PDA
Sourcepub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
Add an aditional account to the instruction.
Sourcepub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
pub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
Source§impl Default for SetAndVerifyCollectionBuilder
impl Default for SetAndVerifyCollectionBuilder
Source§fn default() -> SetAndVerifyCollectionBuilder
fn default() -> SetAndVerifyCollectionBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SetAndVerifyCollectionBuilder
impl RefUnwindSafe for SetAndVerifyCollectionBuilder
impl Send for SetAndVerifyCollectionBuilder
impl Sync for SetAndVerifyCollectionBuilder
impl Unpin for SetAndVerifyCollectionBuilder
impl UnsafeUnpin for SetAndVerifyCollectionBuilder
impl UnwindSafe for SetAndVerifyCollectionBuilder
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