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>,
}Fields§
§label: Option<String>The DEX’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. Only the router names it; route events repeat the program id in amm.
input_mint: Option<String>§in_amount: Option<String>§output_mint: Option<String>§out_amount: Option<String>Trait Implementations§
Source§impl Clone for RouteHopSwapInfo
impl Clone for RouteHopSwapInfo
Source§fn clone(&self) -> RouteHopSwapInfo
fn clone(&self) -> RouteHopSwapInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RouteHopSwapInfo
impl Debug for RouteHopSwapInfo
Source§impl Default for RouteHopSwapInfo
impl Default for RouteHopSwapInfo
Source§fn default() -> RouteHopSwapInfo
fn default() -> RouteHopSwapInfo
Returns the “default value” for a type. Read more
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 Freeze for RouteHopSwapInfo
impl RefUnwindSafe for RouteHopSwapInfo
impl Send for RouteHopSwapInfo
impl Sync for RouteHopSwapInfo
impl Unpin for RouteHopSwapInfo
impl UnsafeUnpin for RouteHopSwapInfo
impl UnwindSafe for RouteHopSwapInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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