pub struct Revoke<'a> {
pub source: &'a AccountView,
pub authority: &'a AccountView,
}Expand description
Revokes the delegate’s authority.
§Accounts:
[WRITE]The source account.[SIGNER]The source account owner.
Fields§
§source: &'a AccountViewSource Account.
Source Owner Account.
Implementations§
Source§impl Revoke<'_>
impl Revoke<'_>
pub fn invoke(&self) -> Result<(), ProgramError>
pub fn invoke_signed( &self, signers: &[Signer<'_, '_>], ) -> Result<(), ProgramError>
Auto Trait Implementations§
impl<'a> Freeze for Revoke<'a>
impl<'a> RefUnwindSafe for Revoke<'a>
impl<'a> !Send for Revoke<'a>
impl<'a> !Sync for Revoke<'a>
impl<'a> Unpin for Revoke<'a>
impl<'a> UnsafeUnpin for Revoke<'a>
impl<'a> UnwindSafe for Revoke<'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