Struct mpl_token_metadata::instructions::LockV1Builder
source · pub struct LockV1Builder { /* private fields */ }
Expand description
Instruction builder.
Implementations§
source§impl LockV1Builder
impl LockV1Builder
pub fn new() -> Self
Delegate or freeze authority
sourcepub fn token_owner(&mut self, token_owner: Option<Pubkey>) -> &mut Self
pub fn token_owner(&mut self, token_owner: Option<Pubkey>) -> &mut Self
[optional account]
Token owner account
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 token_record(&mut self, token_record: Option<Pubkey>) -> &mut Self
pub fn token_record(&mut self, token_record: Option<Pubkey>) -> &mut Self
[optional account]
Token record 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 LockV1Builder
impl Default for LockV1Builder
source§fn default() -> LockV1Builder
fn default() -> LockV1Builder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for LockV1Builder
impl Send for LockV1Builder
impl Sync for LockV1Builder
impl Unpin for LockV1Builder
impl UnwindSafe for LockV1Builder
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