pub struct CloseRateAccountBuilder { /* private fields */ }Expand description
Instruction builder for CloseRateAccount.
§Accounts:
[]mint[]verification_config_or_mint_authority[]instructions_sysvar_or_creator[writable]rate_account[writable]destination[]mint_from[]mint_to
Implementations§
Source§impl CloseRateAccountBuilder
impl CloseRateAccountBuilder
pub fn new() -> Self
pub fn mint(&mut self, mint: Pubkey) -> &mut Self
pub fn instructions_sysvar_or_creator( &mut self, instructions_sysvar_or_creator: Pubkey, ) -> &mut Self
pub fn rate_account(&mut self, rate_account: Pubkey) -> &mut Self
pub fn destination(&mut self, destination: Pubkey) -> &mut Self
pub fn mint_from(&mut self, mint_from: Pubkey) -> &mut Self
pub fn mint_to(&mut self, mint_to: Pubkey) -> &mut Self
pub fn close_rate_args(&mut self, close_rate_args: CloseRateArgs) -> &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 CloseRateAccountBuilder
impl Clone for CloseRateAccountBuilder
Source§fn clone(&self) -> CloseRateAccountBuilder
fn clone(&self) -> CloseRateAccountBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CloseRateAccountBuilder
impl Debug for CloseRateAccountBuilder
Source§impl Default for CloseRateAccountBuilder
impl Default for CloseRateAccountBuilder
Source§fn default() -> CloseRateAccountBuilder
fn default() -> CloseRateAccountBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CloseRateAccountBuilder
impl RefUnwindSafe for CloseRateAccountBuilder
impl Send for CloseRateAccountBuilder
impl Sync for CloseRateAccountBuilder
impl Unpin for CloseRateAccountBuilder
impl UnsafeUnpin for CloseRateAccountBuilder
impl UnwindSafe for CloseRateAccountBuilder
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