pub struct UpdateMetadataField<'a> {
pub metadata: &'a AccountView<'a>,
pub update_authority: &'a AccountView<'a>,
pub field: MetadataField<'a>,
pub value: &'a str,
}Expand description
UpdateField: set the name, the symbol, the URI, or an additional
key to value. A new key or a longer value grows the account,
which must already hold the rent for it.
Fields§
§metadata: &'a AccountView<'a>§field: MetadataField<'a>§value: &'a strImplementations§
Source§impl UpdateMetadataField<'_>
impl UpdateMetadataField<'_>
Sourcepub fn invoke(&self) -> ProgramResult
pub fn invoke(&self) -> ProgramResult
Send to Token-2022.
Sourcepub fn invoke_signed(&self, signers: &[Signer<'_, '_>]) -> ProgramResult
pub fn invoke_signed(&self, signers: &[Signer<'_, '_>]) -> ProgramResult
Send to Token-2022 with PDA signers.
Sourcepub fn invoke_on_program(
&self,
program: &Address,
signers: &[Signer<'_, '_>],
) -> ProgramResult
pub fn invoke_on_program( &self, program: &Address, signers: &[Signer<'_, '_>], ) -> ProgramResult
Send to any program that implements the interface. With no
PDA signers, the instruction’s signer must have signed
the transaction directly.
Trait Implementations§
Source§impl<'a, 'x: 'a> TokenInstruction<'a> for UpdateMetadataField<'x>
impl<'a, 'x: 'a> TokenInstruction<'a> for UpdateMetadataField<'x>
fn emit( &self, _multisig_signers: &[&'a AccountView<'a>], sink: &mut impl TokenSink<'a>, ) -> ProgramResult
Auto Trait Implementations§
impl<'a> !Send for UpdateMetadataField<'a>
impl<'a> !Sync for UpdateMetadataField<'a>
impl<'a> Freeze for UpdateMetadataField<'a>
impl<'a> RefUnwindSafe for UpdateMetadataField<'a>
impl<'a> Unpin for UpdateMetadataField<'a>
impl<'a> UnsafeUnpin for UpdateMetadataField<'a>
impl<'a> UnwindSafe for UpdateMetadataField<'a>
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