pub struct Quote {
pub amount: u64,
pub min_out: u64,
pub input_amount_used: u64,
pub max_input: u64,
}Expand description
Result of a quote computation. amount is the primary output (tokens for
SOL-input buys; lamports for token-input buys and for sells).
min_out and max_input are slippage-adjusted bounds where applicable.
For AMM quote-in buys (buy_quote_amm_sol_in), max_input is the
slippage-inflated quote ceiling (mirrors maxQuote in
@pump-fun/pump-swap-sdk buyQuoteInput). For sells, min_out is the
quote floor. For token-out buys, max_input is the max quote you may spend.
Fields§
§amount: u64§min_out: u64§input_amount_used: u64§max_input: u64Trait Implementations§
impl Copy for Quote
impl Eq for Quote
impl StructuralPartialEq for Quote
Auto Trait Implementations§
impl Freeze for Quote
impl RefUnwindSafe for Quote
impl Send for Quote
impl Sync for Quote
impl Unpin for Quote
impl UnsafeUnpin for Quote
impl UnwindSafe for Quote
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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