pub struct RevokeMigrationV1CpiBuilder<'a, 'b> { /* private fields */ }
Expand description
Instruction builder for RevokeMigrationV1
via CPI.
Accounts:
[writable, optional]
delegate_record[]
delegate[writable]
metadata[optional]
master_edition[writable, optional]
token_record[]
mint[writable]
token[signer]
authority[writable, signer]
payer[]
system_program[]
sysvar_instructions[optional]
spl_token_program[optional]
authorization_rules_program[optional]
authorization_rules
Implementations§
source§impl<'a, 'b> RevokeMigrationV1CpiBuilder<'a, 'b>
impl<'a, 'b> RevokeMigrationV1CpiBuilder<'a, 'b>
pub fn new(program: &'b AccountInfo<'a>) -> Self
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 account
sourcepub fn delegate(&mut self, delegate: &'b AccountInfo<'a>) -> &mut Self
pub fn delegate(&mut self, delegate: &'b AccountInfo<'a>) -> &mut Self
Owner of the delegated account
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 master_edition(
&mut self,
master_edition: Option<&'b AccountInfo<'a>>
) -> &mut Self
pub fn master_edition( &mut self, master_edition: Option<&'b AccountInfo<'a>> ) -> &mut Self
[optional account]
Master Edition account
sourcepub fn token_record(
&mut self,
token_record: Option<&'b AccountInfo<'a>>
) -> &mut Self
pub fn token_record( &mut self, token_record: Option<&'b AccountInfo<'a>> ) -> &mut Self
[optional account]
Token record account
sourcepub fn mint(&mut self, mint: &'b AccountInfo<'a>) -> &mut Self
pub fn mint(&mut self, mint: &'b AccountInfo<'a>) -> &mut Self
Mint of metadata
sourcepub fn token(&mut self, token: &'b AccountInfo<'a>) -> &mut Self
pub fn token(&mut self, token: &'b AccountInfo<'a>) -> &mut Self
Token account of mint
Update authority or token owner
sourcepub fn payer(&mut self, payer: &'b AccountInfo<'a>) -> &mut Self
pub fn payer(&mut self, payer: &'b AccountInfo<'a>) -> &mut Self
Payer
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 spl_token_program(
&mut self,
spl_token_program: Option<&'b AccountInfo<'a>>
) -> &mut Self
pub fn spl_token_program( &mut self, spl_token_program: Option<&'b AccountInfo<'a>> ) -> &mut Self
[optional account]
SPL Token Program
[optional account]
Token Authorization Rules Program
[optional account]
Token Authorization Rules 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 RevokeMigrationV1CpiBuilder<'a, 'b>
impl<'a, 'b> !Send for RevokeMigrationV1CpiBuilder<'a, 'b>
impl<'a, 'b> !Sync for RevokeMigrationV1CpiBuilder<'a, 'b>
impl<'a, 'b> Unpin for RevokeMigrationV1CpiBuilder<'a, 'b>
impl<'a, 'b> !UnwindSafe for RevokeMigrationV1CpiBuilder<'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