Struct mpl_token_metadata::instruction::builders::Unlock
source · pub struct Unlock {Show 14 fields
pub authority: Pubkey,
pub token_owner: Option<Pubkey>,
pub token: Pubkey,
pub mint: Pubkey,
pub metadata: Pubkey,
pub edition: Option<Pubkey>,
pub token_record: Option<Pubkey>,
pub payer: Pubkey,
pub system_program: Pubkey,
pub sysvar_instructions: Pubkey,
pub spl_token_program: Option<Pubkey>,
pub authorization_rules_program: Option<Pubkey>,
pub authorization_rules: Option<Pubkey>,
pub args: UnlockArgs,
}
Fields§
§token_owner: Option<Pubkey>
§token: Pubkey
§mint: Pubkey
§metadata: Pubkey
§edition: Option<Pubkey>
§token_record: Option<Pubkey>
§payer: Pubkey
§system_program: Pubkey
§sysvar_instructions: Pubkey
§spl_token_program: Option<Pubkey>
§args: UnlockArgs
Trait Implementations§
source§impl InstructionBuilder for Unlock
impl InstructionBuilder for Unlock
Unlocks an asset. For non-programmable assets, this will also thaw the token account.
Accounts:
[signer]
Delegate account[optional]
Token owner[writable]
Token account[]
Mint account[writable]
Metadata account[optional]
Edition account[optional, writable]
Token record account[signer, writable]
Payer[]
System Program[]
Instructions sysvar account[optional]
SPL Token Program[optional]
Token Authorization Rules program[optional]
Token Authorization Rules account
fn instruction(&self) -> Instruction
Auto Trait Implementations§
impl RefUnwindSafe for Unlock
impl Send for Unlock
impl Sync for Unlock
impl Unpin for Unlock
impl UnwindSafe for Unlock
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