pub struct QuoteRequest {Show 20 fields
pub input_mint: Pubkey,
pub output_mint: Pubkey,
pub amount: u64,
pub swap_mode: Option<SwapMode>,
pub slippage_bps: u16,
pub auto_slippage: Option<bool>,
pub max_auto_slippage_bps: Option<u16>,
pub compute_auto_slippage: bool,
pub auto_slippage_collision_usd_value: Option<u32>,
pub minimize_slippage: Option<bool>,
pub platform_fee_bps: Option<u8>,
pub dexes: Option<String>,
pub excluded_dexes: Option<String>,
pub only_direct_routes: Option<bool>,
pub as_legacy_transaction: Option<bool>,
pub restrict_intermediate_tokens: Option<bool>,
pub max_accounts: Option<usize>,
pub quote_type: Option<String>,
pub quote_args: Option<HashMap<String, String>>,
pub prefer_liquid_dexes: Option<bool>,
}Fields§
§input_mint: Pubkey§output_mint: Pubkey§amount: u64§swap_mode: Option<SwapMode>§slippage_bps: u16§auto_slippage: Option<bool>§max_auto_slippage_bps: Option<u16>§compute_auto_slippage: bool§auto_slippage_collision_usd_value: Option<u32>§minimize_slippage: Option<bool>§platform_fee_bps: Option<u8>§dexes: Option<String>§excluded_dexes: Option<String>§only_direct_routes: Option<bool>§as_legacy_transaction: Option<bool>§restrict_intermediate_tokens: Option<bool>§max_accounts: Option<usize>§quote_type: Option<String>§quote_args: Option<HashMap<String, String>>§prefer_liquid_dexes: Option<bool>Trait Implementations§
Source§impl Clone for QuoteRequest
impl Clone for QuoteRequest
Source§fn clone(&self) -> QuoteRequest
fn clone(&self) -> QuoteRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 QuoteRequest
impl Debug for QuoteRequest
Source§impl Default for QuoteRequest
impl Default for QuoteRequest
Source§fn default() -> QuoteRequest
fn default() -> QuoteRequest
Returns the “default value” for a type. Read more
Source§impl From<QuoteRequest> for InternalQuoteRequest
impl From<QuoteRequest> for InternalQuoteRequest
Source§fn from(req: QuoteRequest) -> Self
fn from(req: QuoteRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for QuoteRequest
impl RefUnwindSafe for QuoteRequest
impl Send for QuoteRequest
impl Sync for QuoteRequest
impl Unpin for QuoteRequest
impl UnsafeUnpin for QuoteRequest
impl UnwindSafe for QuoteRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more