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