Struct mpl_token_metadata::instruction::builders::Lock
source · pub struct Lock {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: LockArgs,
}
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: LockArgs
Trait Implementations§
source§impl InstructionBuilder for Lock
impl InstructionBuilder for Lock
Locks an asset. For non-programmable assets, this will also freeze 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 Lock
impl Send for Lock
impl Sync for Lock
impl Unpin for Lock
impl UnwindSafe for Lock
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