pub struct VerifyCollectionV1CpiBuilder<'a, 'b> { /* private fields */ }
Expand description
Instruction builder for VerifyCollectionV1
via CPI.
Accounts:
[signer]
authority[optional]
delegate_record[writable]
metadata[]
collection_mint[writable, optional]
collection_metadata[optional]
collection_master_edition[]
system_program[]
sysvar_instructions
Implementations§
source§impl<'a, 'b> VerifyCollectionV1CpiBuilder<'a, 'b>
impl<'a, 'b> VerifyCollectionV1CpiBuilder<'a, 'b>
pub fn new(program: &'b AccountInfo<'a>) -> Self
Creator to verify, collection update authority or delegate
sourcepub fn delegate_record(
&mut self,
delegate_record: Option<&'b AccountInfo<'a>>
) -> &mut Self
pub fn delegate_record( &mut self, delegate_record: Option<&'b AccountInfo<'a>> ) -> &mut Self
[optional account]
Delegate record PDA
sourcepub fn metadata(&mut self, metadata: &'b AccountInfo<'a>) -> &mut Self
pub fn metadata(&mut self, metadata: &'b AccountInfo<'a>) -> &mut Self
Metadata account
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_metadata(
&mut self,
collection_metadata: Option<&'b AccountInfo<'a>>
) -> &mut Self
pub fn collection_metadata( &mut self, collection_metadata: Option<&'b AccountInfo<'a>> ) -> &mut Self
[optional account]
Metadata Account of the Collection
sourcepub fn collection_master_edition(
&mut self,
collection_master_edition: Option<&'b AccountInfo<'a>>
) -> &mut Self
pub fn collection_master_edition( &mut self, collection_master_edition: Option<&'b AccountInfo<'a>> ) -> &mut Self
[optional account]
Master Edition Account of the Collection Token
sourcepub fn system_program(
&mut self,
system_program: &'b AccountInfo<'a>
) -> &mut Self
pub fn system_program( &mut self, system_program: &'b AccountInfo<'a> ) -> &mut Self
System program
sourcepub fn sysvar_instructions(
&mut self,
sysvar_instructions: &'b AccountInfo<'a>
) -> &mut Self
pub fn sysvar_instructions( &mut self, sysvar_instructions: &'b AccountInfo<'a> ) -> &mut Self
Instructions sysvar account
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 VerifyCollectionV1CpiBuilder<'a, 'b>
impl<'a, 'b> !Send for VerifyCollectionV1CpiBuilder<'a, 'b>
impl<'a, 'b> !Sync for VerifyCollectionV1CpiBuilder<'a, 'b>
impl<'a, 'b> Unpin for VerifyCollectionV1CpiBuilder<'a, 'b>
impl<'a, 'b> !UnwindSafe for VerifyCollectionV1CpiBuilder<'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