pub struct TransferV1CpiBuilder<'a, 'b> { /* private fields */ }
Expand description
transfer_v1
CPI instruction builder.
Implementations§
source§impl<'a, 'b> TransferV1CpiBuilder<'a, 'b>
impl<'a, 'b> TransferV1CpiBuilder<'a, 'b>
pub fn new(program: &'b AccountInfo<'a>) -> Self
sourcepub fn token(&mut self, token: &'b AccountInfo<'a>) -> &mut Self
pub fn token(&mut self, token: &'b AccountInfo<'a>) -> &mut Self
Token account
sourcepub fn token_owner(&mut self, token_owner: &'b AccountInfo<'a>) -> &mut Self
pub fn token_owner(&mut self, token_owner: &'b AccountInfo<'a>) -> &mut Self
Token account owner
sourcepub fn destination_token(
&mut self,
destination_token: &'b AccountInfo<'a>
) -> &mut Self
pub fn destination_token( &mut self, destination_token: &'b AccountInfo<'a> ) -> &mut Self
Destination token account
sourcepub fn destination_owner(
&mut self,
destination_owner: &'b AccountInfo<'a>
) -> &mut Self
pub fn destination_owner( &mut self, destination_owner: &'b AccountInfo<'a> ) -> &mut Self
Destination token account owner
sourcepub fn mint(&mut self, mint: &'b AccountInfo<'a>) -> &mut Self
pub fn mint(&mut self, mint: &'b AccountInfo<'a>) -> &mut Self
Mint of token asset
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 edition(&mut self, edition: Option<&'b AccountInfo<'a>>) -> &mut Self
pub fn edition(&mut self, edition: Option<&'b AccountInfo<'a>>) -> &mut Self
[optional account]
Edition of token asset
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]
Owner token record account
sourcepub fn destination_token_record(
&mut self,
destination_token_record: Option<&'b AccountInfo<'a>>
) -> &mut Self
pub fn destination_token_record( &mut self, destination_token_record: Option<&'b AccountInfo<'a>> ) -> &mut Self
[optional account]
Destination token record account
Transfer authority (token owner or delegate)
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: &'b AccountInfo<'a>
) -> &mut Self
pub fn spl_token_program( &mut self, spl_token_program: &'b AccountInfo<'a> ) -> &mut Self
SPL Token Program
sourcepub fn spl_ata_program(
&mut self,
spl_ata_program: &'b AccountInfo<'a>
) -> &mut Self
pub fn spl_ata_program( &mut self, spl_ata_program: &'b AccountInfo<'a> ) -> &mut Self
SPL Associated Token Account program
[optional account]
Token Authorization Rules Program
[optional account]
Token Authorization Rules account
[optional argument]
pub fn add_remaining_account( &mut self, account: InstructionAccountInfo<'a, 'b> ) -> &mut Self
pub fn add_remaining_accounts( &mut self, accounts: &[InstructionAccountInfo<'a, 'b>] ) -> &mut Self
pub fn invoke(&self) -> ProgramResult
pub fn invoke_signed(&self, signers_seeds: &[&[&[u8]]]) -> ProgramResult
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for TransferV1CpiBuilder<'a, 'b>
impl<'a, 'b> !Send for TransferV1CpiBuilder<'a, 'b>
impl<'a, 'b> !Sync for TransferV1CpiBuilder<'a, 'b>
impl<'a, 'b> Unpin for TransferV1CpiBuilder<'a, 'b>
impl<'a, 'b> !UnwindSafe for TransferV1CpiBuilder<'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