pub struct RemoveCreatorVerificationCpiBuilder<'a, 'b> { /* private fields */ }
Expand description
Instruction builder for RemoveCreatorVerification
via CPI.
Accounts:
[writable]
metadata[signer]
creator
Implementations§
source§impl<'a, 'b> RemoveCreatorVerificationCpiBuilder<'a, 'b>
impl<'a, 'b> RemoveCreatorVerificationCpiBuilder<'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 (pda of [‘metadata’, program id, mint id])
sourcepub fn creator(&mut self, creator: &'b AccountInfo<'a>) -> &mut Self
pub fn creator(&mut self, creator: &'b AccountInfo<'a>) -> &mut Self
Creator
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 RemoveCreatorVerificationCpiBuilder<'a, 'b>
impl<'a, 'b> !Send for RemoveCreatorVerificationCpiBuilder<'a, 'b>
impl<'a, 'b> !Sync for RemoveCreatorVerificationCpiBuilder<'a, 'b>
impl<'a, 'b> Unpin for RemoveCreatorVerificationCpiBuilder<'a, 'b>
impl<'a, 'b> !UnwindSafe for RemoveCreatorVerificationCpiBuilder<'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