pub struct Quote {
pub input_mint: String,
pub output_mint: String,
pub in_amount: u64,
pub out_amount: u64,
pub price_impact_pct: f64,
pub slot: u64,
pub timestamp_ms: u64,
pub route_plan: Vec<Value>,
pub other_amount_threshold: Option<u64>,
pub swap_mode: String,
}Expand description
Swap quote from K256.
Fields§
§input_mint: StringInput token mint address
output_mint: StringOutput token mint address
in_amount: u64Input amount in base units
out_amount: u64Output amount in base units
price_impact_pct: f64Price impact percentage
slot: u64Solana slot of the quote
timestamp_ms: u64Unix timestamp in milliseconds
route_plan: Vec<Value>List of route steps
other_amount_threshold: Option<u64>Minimum output (or max input for exactOut)
swap_mode: String“ExactIn” or “ExactOut”
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Quote
impl<'de> Deserialize<'de> for Quote
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
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 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