pub struct SetAuthority<'a> {
pub account: &'a AccountView,
pub authority: &'a AccountView,
pub authority_type: AuthorityType,
pub new_authority: Option<&'a Address>,
}Expand description
Sets a new authority of a mint or account.
§Accounts:
[WRITE]The mint or account to change the authority of.[SIGNER]The current authority of the mint or account.
Fields§
§account: &'a AccountViewAccount (Mint or Token)
Authority of the Account.
The type of authority to update.
The new authority
Implementations§
Source§impl SetAuthority<'_>
impl SetAuthority<'_>
pub fn invoke(&self) -> Result<(), ProgramError>
pub fn invoke_signed( &self, signers: &[Signer<'_, '_>], ) -> Result<(), ProgramError>
Auto Trait Implementations§
impl<'a> Freeze for SetAuthority<'a>
impl<'a> RefUnwindSafe for SetAuthority<'a>
impl<'a> !Send for SetAuthority<'a>
impl<'a> !Sync 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