pub struct RouteHopSwapInfo {
pub label: Option<String>,
pub amm_key: Option<String>,
pub input_mint: Option<String>,
pub in_amount: Option<String>,
pub output_mint: Option<String>,
pub out_amount: Option<String>,
}Expand description
What one hop swapped, and where. Wire keys are camelCase.
Fields§
§label: Option<String>The venue’s name, e.g. Raydium. None where the hop’s program has no known label, which
is a hop that cannot be compared by venue rather than a hop with no venue.
amm_key: Option<String>The pool crossed, base58. Only the router names it; route events repeat the program id in amm.
input_mint: Option<String>The mint the hop takes in, base58.
in_amount: Option<String>What the hop takes in, in raw input-mint base units, as a decimal string.
output_mint: Option<String>The mint the hop pays out, base58.
out_amount: Option<String>What the hop pays out, in raw output-mint base units, as a decimal string.
Trait Implementations§
Source§impl Clone for RouteHopSwapInfo
impl Clone for RouteHopSwapInfo
Source§impl Debug for RouteHopSwapInfo
impl Debug for RouteHopSwapInfo
Source§impl Default for RouteHopSwapInfo
impl Default for RouteHopSwapInfo
Source§impl<'de> Deserialize<'de> for RouteHopSwapInfo
impl<'de> Deserialize<'de> for RouteHopSwapInfo
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 Eq for RouteHopSwapInfo
Source§impl PartialEq for RouteHopSwapInfo
impl PartialEq for RouteHopSwapInfo
Source§impl Serialize for RouteHopSwapInfo
impl Serialize for RouteHopSwapInfo
impl StructuralPartialEq for RouteHopSwapInfo
Auto Trait Implementations§
impl Forget for RouteHopSwapInfo
impl Freeze for RouteHopSwapInfo
impl Move for RouteHopSwapInfo
impl RefUnwindSafe for RouteHopSwapInfo
impl Send for RouteHopSwapInfowhere
RawVecInner: Send,
impl Sync for RouteHopSwapInfowhere
RawVecInner: Sync,
impl Unpin for RouteHopSwapInfo
impl UnsafeUnpin for RouteHopSwapInfo
impl UnwindSafe for RouteHopSwapInfowhere
RawVecInner: UnwindSafe,
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