pub struct PermissionRevokeBuilder { /* private fields */ }Expand description
Instruction builder for PermissionRevoke.
§Accounts:
[writable, signer]funder[]permission_config[writable]consumed_permission[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl PermissionRevokeBuilder
impl PermissionRevokeBuilder
pub fn new() -> Self
Sourcepub fn funder(&mut self, funder: Pubkey) -> &mut Self
pub fn funder(&mut self, funder: Pubkey) -> &mut Self
The funder of the consumed permission PDA
Sourcepub fn permission_config(&mut self, permission_config: Pubkey) -> &mut Self
pub fn permission_config(&mut self, permission_config: Pubkey) -> &mut Self
The permission config account
Sourcepub fn consumed_permission(&mut self, consumed_permission: Pubkey) -> &mut Self
pub fn consumed_permission(&mut self, consumed_permission: Pubkey) -> &mut Self
The consumed permission account
Sourcepub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
[optional account, default to '11111111111111111111111111111111']
System program
pub fn permission_message( &mut self, permission_message: PermissionMessage, ) -> &mut Self
pub fn permission_signature( &mut self, permission_signature: PermissionSignature, ) -> &mut Self
Sourcepub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
Add an additional account to the instruction.
Sourcepub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
pub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
Source§impl Clone for PermissionRevokeBuilder
impl Clone for PermissionRevokeBuilder
Source§fn clone(&self) -> PermissionRevokeBuilder
fn clone(&self) -> PermissionRevokeBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PermissionRevokeBuilder
impl Debug for PermissionRevokeBuilder
Source§impl Default for PermissionRevokeBuilder
impl Default for PermissionRevokeBuilder
Source§fn default() -> PermissionRevokeBuilder
fn default() -> PermissionRevokeBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PermissionRevokeBuilder
impl RefUnwindSafe for PermissionRevokeBuilder
impl Send for PermissionRevokeBuilder
impl Sync for PermissionRevokeBuilder
impl Unpin for PermissionRevokeBuilder
impl UnwindSafe for PermissionRevokeBuilder
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