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