pub struct QuoteResponse {Show 14 fields
pub input_mint: Pubkey,
pub in_amount: u64,
pub output_mint: Pubkey,
pub out_amount: u64,
pub other_amount_threshold: u64,
pub swap_mode: SwapMode,
pub slippage_bps: u16,
pub computed_auto_slippage: Option<u16>,
pub uses_quote_minimizing_slippage: Option<bool>,
pub platform_fee: Option<PlatformFee>,
pub price_impact_pct: Decimal,
pub route_plan: RoutePlanWithMetadata,
pub context_slot: u64,
pub time_taken: f64,
}
Fields§
§input_mint: Pubkey
§in_amount: u64
§output_mint: Pubkey
§out_amount: u64
§other_amount_threshold: u64
Not used by build transaction
swap_mode: SwapMode
§slippage_bps: u16
§computed_auto_slippage: Option<u16>
§uses_quote_minimizing_slippage: Option<bool>
§platform_fee: Option<PlatformFee>
§price_impact_pct: Decimal
§route_plan: RoutePlanWithMetadata
§context_slot: u64
§time_taken: f64
Trait Implementations§
Source§impl Clone for QuoteResponse
impl Clone for QuoteResponse
Source§fn clone(&self) -> QuoteResponse
fn clone(&self) -> QuoteResponse
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 QuoteResponse
impl Debug for QuoteResponse
Source§impl<'de> Deserialize<'de> for QuoteResponse
impl<'de> Deserialize<'de> for QuoteResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for QuoteResponse
impl RefUnwindSafe for QuoteResponse
impl Send for QuoteResponse
impl Sync for QuoteResponse
impl Unpin for QuoteResponse
impl UnwindSafe for QuoteResponse
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