Struct jupiter_amm_interface::SwapParams
source · pub struct SwapParams<'a, 'b> {
pub in_amount: u64,
pub source_mint: Pubkey,
pub destination_mint: Pubkey,
pub user_source_token_account: Pubkey,
pub user_destination_token_account: Pubkey,
pub user_transfer_authority: Pubkey,
pub open_order_address: Option<Pubkey>,
pub quote_mint_to_referrer: Option<&'a QuoteMintToReferrer>,
pub jupiter_program_id: &'b Pubkey,
}Fields§
§in_amount: u64§source_mint: Pubkey§destination_mint: Pubkey§user_source_token_account: Pubkey§user_destination_token_account: Pubkey§open_order_address: Option<Pubkey>§quote_mint_to_referrer: Option<&'a QuoteMintToReferrer>§jupiter_program_id: &'b PubkeyImplementations§
source§impl<'a, 'b> SwapParams<'a, 'b>
impl<'a, 'b> SwapParams<'a, 'b>
sourcepub fn placeholder_account_meta(&self) -> AccountMeta
pub fn placeholder_account_meta(&self) -> AccountMeta
A placeholder to indicate an optional account or used as a terminator when consuming remaining accounts Using the jupiter program id
Auto Trait Implementations§
impl<'a, 'b> RefUnwindSafe for SwapParams<'a, 'b>
impl<'a, 'b> Send for SwapParams<'a, 'b>
impl<'a, 'b> Sync for SwapParams<'a, 'b>
impl<'a, 'b> Unpin for SwapParams<'a, 'b>
impl<'a, 'b> UnwindSafe for SwapParams<'a, 'b>
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