pub struct ConvertBuilder { /* private fields */ }Expand description
Instruction builder for Convert.
§Accounts:
[]mint[]verification_config[optional]instructions_sysvar (default toSysvar1nstructions1111111111111111111111111)[]mint_authority[]permanent_delegate[writable, signer]payer[writable]mint_from[writable]mint_to[writable]token_account_from[writable]token_account_to[]rate_account[writable]receipt_account[optional]token_program (default toTokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb)[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl ConvertBuilder
impl ConvertBuilder
pub fn new() -> Self
pub fn mint(&mut self, mint: Pubkey) -> &mut Self
pub fn verification_config(&mut self, verification_config: Pubkey) -> &mut Self
Sourcepub fn instructions_sysvar(&mut self, instructions_sysvar: Pubkey) -> &mut Self
pub fn instructions_sysvar(&mut self, instructions_sysvar: Pubkey) -> &mut Self
[optional account, default to 'Sysvar1nstructions1111111111111111111111111']
pub fn permanent_delegate(&mut self, permanent_delegate: Pubkey) -> &mut Self
pub fn payer(&mut self, payer: 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 token_account_from(&mut self, token_account_from: Pubkey) -> &mut Self
pub fn token_account_to(&mut self, token_account_to: Pubkey) -> &mut Self
pub fn rate_account(&mut self, rate_account: Pubkey) -> &mut Self
pub fn receipt_account(&mut self, receipt_account: Pubkey) -> &mut Self
Sourcepub fn token_program(&mut self, token_program: Pubkey) -> &mut Self
pub fn token_program(&mut self, token_program: Pubkey) -> &mut Self
[optional account, default to 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb']
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 convert_args(&mut self, convert_args: ConvertArgs) -> &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 ConvertBuilder
impl Clone for ConvertBuilder
Source§fn clone(&self) -> ConvertBuilder
fn clone(&self) -> ConvertBuilder
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 ConvertBuilder
impl Debug for ConvertBuilder
Source§impl Default for ConvertBuilder
impl Default for ConvertBuilder
Source§fn default() -> ConvertBuilder
fn default() -> ConvertBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConvertBuilder
impl RefUnwindSafe for ConvertBuilder
impl Send for ConvertBuilder
impl Sync for ConvertBuilder
impl Unpin for ConvertBuilder
impl UnsafeUnpin for ConvertBuilder
impl UnwindSafe for ConvertBuilder
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