pub struct PermissionRefundBuilder { /* private fields */ }Expand description
Instruction builder for PermissionRefund.
§Accounts:
[writable]fee_authority[]config[writable]consumed_permission
Implementations§
Source§impl PermissionRefundBuilder
impl PermissionRefundBuilder
pub fn new() -> Self
The fee authority of the program
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 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 PermissionRefundBuilder
impl Clone for PermissionRefundBuilder
Source§fn clone(&self) -> PermissionRefundBuilder
fn clone(&self) -> PermissionRefundBuilder
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 PermissionRefundBuilder
impl Debug for PermissionRefundBuilder
Source§impl Default for PermissionRefundBuilder
impl Default for PermissionRefundBuilder
Source§fn default() -> PermissionRefundBuilder
fn default() -> PermissionRefundBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PermissionRefundBuilder
impl RefUnwindSafe for PermissionRefundBuilder
impl Send for PermissionRefundBuilder
impl Sync for PermissionRefundBuilder
impl Unpin for PermissionRefundBuilder
impl UnwindSafe for PermissionRefundBuilder
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