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