Struct mpl_token_metadata::instructions::UseV1Builder
source · pub struct UseV1Builder { /* private fields */ }
Expand description
Instruction builder.
Implementations§
source§impl UseV1Builder
impl UseV1Builder
pub fn new() -> Self
Token owner or delegate
sourcepub fn delegate_record(&mut self, delegate_record: Option<Pubkey>) -> &mut Self
pub fn delegate_record(&mut self, delegate_record: Option<Pubkey>) -> &mut Self
[optional account]
Delegate record PDA
sourcepub fn edition(&mut self, edition: Option<Pubkey>) -> &mut Self
pub fn edition(&mut self, edition: Option<Pubkey>) -> &mut Self
[optional account]
Edition account
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
sourcepub fn sysvar_instructions(&mut self, sysvar_instructions: Pubkey) -> &mut Self
pub fn sysvar_instructions(&mut self, sysvar_instructions: Pubkey) -> &mut Self
[optional account, default to 'Sysvar1nstructions1111111111111111111111111']
System program
sourcepub fn spl_token_program(
&mut self,
spl_token_program: Option<Pubkey>
) -> &mut Self
pub fn spl_token_program( &mut self, spl_token_program: Option<Pubkey> ) -> &mut Self
[optional account]
SPL Token Program
[optional account]
Token Authorization Rules Program
[optional account]
Token Authorization Rules account
[optional argument]
pub fn add_remaining_account( &mut self, account: InstructionAccount ) -> &mut Self
pub fn add_remaining_accounts( &mut self, accounts: &[InstructionAccount] ) -> &mut Self
pub fn instruction(&self) -> Instruction
Trait Implementations§
source§impl Default for UseV1Builder
impl Default for UseV1Builder
source§fn default() -> UseV1Builder
fn default() -> UseV1Builder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for UseV1Builder
impl Send for UseV1Builder
impl Sync for UseV1Builder
impl Unpin for UseV1Builder
impl UnwindSafe for UseV1Builder
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