pub struct ApproveUseAuthorityBuilder { /* private fields */ }
Expand description
Instruction builder for ApproveUseAuthority
.
Accounts:
[writable]
use_authority_record[writable, signer]
owner[writable, signer]
payer[]
user[writable]
owner_token_account[]
metadata[]
mint[]
burner[optional]
token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
)[optional]
system_program (default to11111111111111111111111111111111
)[optional]
rent
Implementations§
source§impl ApproveUseAuthorityBuilder
impl ApproveUseAuthorityBuilder
pub fn new() -> Self
Use Authority Record PDA
sourcepub fn owner_token_account(&mut self, owner_token_account: Pubkey) -> &mut Self
pub fn owner_token_account(&mut self, owner_token_account: Pubkey) -> &mut Self
Owned Token Account Of Mint
sourcepub fn token_program(&mut self, token_program: Pubkey) -> &mut Self
pub fn token_program(&mut self, token_program: Pubkey) -> &mut Self
[optional account, default to 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA']
Token program
sourcepub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
[optional account, default to '11111111111111111111111111111111']
System program
pub fn number_of_uses(&mut self, number_of_uses: u64) -> &mut Self
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 ApproveUseAuthorityBuilder
impl Default for ApproveUseAuthorityBuilder
source§fn default() -> ApproveUseAuthorityBuilder
fn default() -> ApproveUseAuthorityBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ApproveUseAuthorityBuilder
impl Send for ApproveUseAuthorityBuilder
impl Sync for ApproveUseAuthorityBuilder
impl Unpin for ApproveUseAuthorityBuilder
impl UnwindSafe for ApproveUseAuthorityBuilder
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