pub struct UpdateMetadataAuthority<'a> {
pub metadata: &'a AccountView<'a>,
pub current_authority: &'a AccountView<'a>,
pub new_authority: Option<&'a Address>,
}Expand description
UpdateAuthority: hand the metadata’s update authority to
new_authority, or remove it with None.
Fields§
§metadata: &'a AccountView<'a>Implementations§
Source§impl UpdateMetadataAuthority<'_>
impl UpdateMetadataAuthority<'_>
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 UpdateMetadataAuthority<'x>
impl<'a, 'x: 'a> TokenInstruction<'a> for UpdateMetadataAuthority<'x>
fn emit( &self, _multisig_signers: &[&'a AccountView<'a>], sink: &mut impl TokenSink<'a>, ) -> ProgramResult
Auto Trait Implementations§
impl<'a> !Send for UpdateMetadataAuthority<'a>
impl<'a> !Sync for UpdateMetadataAuthority<'a>
impl<'a> Freeze for UpdateMetadataAuthority<'a>
impl<'a> RefUnwindSafe for UpdateMetadataAuthority<'a>
impl<'a> Unpin for UpdateMetadataAuthority<'a>
impl<'a> UnsafeUnpin for UpdateMetadataAuthority<'a>
impl<'a> UnwindSafe for UpdateMetadataAuthority<'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