pub struct InternalQuoteRequest {Show 19 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 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>§prefer_liquid_dexes: Option<bool>Trait Implementations§
Source§impl Clone for InternalQuoteRequest
impl Clone for InternalQuoteRequest
Source§fn clone(&self) -> InternalQuoteRequest
fn clone(&self) -> InternalQuoteRequest
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 InternalQuoteRequest
impl Debug for InternalQuoteRequest
Source§impl Default for InternalQuoteRequest
impl Default for InternalQuoteRequest
Source§fn default() -> InternalQuoteRequest
fn default() -> InternalQuoteRequest
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 InternalQuoteRequest
impl RefUnwindSafe for InternalQuoteRequest
impl Send for InternalQuoteRequest
impl Sync for InternalQuoteRequest
impl Unpin for InternalQuoteRequest
impl UnsafeUnpin for InternalQuoteRequest
impl UnwindSafe for InternalQuoteRequest
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