pub struct SetAuthority<'a> {
pub account: &'a AccountView<'a>,
pub current_authority: &'a AccountView<'a>,
pub authority_type: TokenAuthorityType,
pub new_authority: Option<&'a Address>,
}Expand description
Builder for SPL Token SetAuthority (instruction index 6).
Fields§
§account: &'a AccountView<'a>Implementations§
Source§impl SetAuthority<'_>
impl SetAuthority<'_>
pub fn invoke(&self) -> ProgramResult
pub fn invoke_signed(&self, signers: &[Signer<'_, '_>]) -> ProgramResult
pub fn invoke_multisig( &self, multisig_signers: &[&AccountView<'_>], ) -> ProgramResult
pub fn invoke_signed_multisig( &self, multisig_signers: &[&AccountView<'_>], signers: &[Signer<'_, '_>], ) -> ProgramResult
Auto Trait Implementations§
impl<'a> !Send for SetAuthority<'a>
impl<'a> !Sync for SetAuthority<'a>
impl<'a> Freeze for SetAuthority<'a>
impl<'a> RefUnwindSafe for SetAuthority<'a>
impl<'a> Unpin for SetAuthority<'a>
impl<'a> UnsafeUnpin for SetAuthority<'a>
impl<'a> UnwindSafe for SetAuthority<'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