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§

§authority: Pubkey§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>§authorization_rules_program: Option<Pubkey>§authorization_rules: Option<Pubkey>§args: UnlockArgs

Trait Implementations§

Unlocks an asset. For non-programmable assets, this will also thaw the token account.

Accounts:

  1. [signer] Delegate
  2. [optional] Token owner
  3. [writable] Token account
  4. [] Mint account
  5. [writable] Metadata account
  6. [optional] Edition account
  7. [optional, writable] Token record account
  8. [signer, writable] Payer
  9. [] System Program
  10. [] Instructions sysvar account
  11. [optional] SPL Token Program
  12. [optional] Token Authorization Rules program
  13. [optional] Token Authorization Rules account

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.