pub enum SwapAggregator {
Jupiter,
Okx,
Titan,
Dflow,
}Expand description
A router whose historical swaps a session can re-quote. The wire spelling; the session maps each onto its own aggregator type.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SwapAggregator
impl Clone for SwapAggregator
Source§fn clone(&self) -> SwapAggregator
fn clone(&self) -> SwapAggregator
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 moreimpl Copy for SwapAggregator
Source§impl Debug for SwapAggregator
impl Debug for SwapAggregator
Source§impl<'de> Deserialize<'de> for SwapAggregator
impl<'de> Deserialize<'de> for SwapAggregator
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
Source§impl Display for SwapAggregator
impl Display for SwapAggregator
impl Eq for SwapAggregator
Source§impl FromStr for SwapAggregator
impl FromStr for SwapAggregator
Source§impl Ord for SwapAggregator
impl Ord for SwapAggregator
Source§fn cmp(&self, other: &SwapAggregator) -> Ordering
fn cmp(&self, other: &SwapAggregator) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SwapAggregator
impl PartialEq for SwapAggregator
Source§impl PartialOrd for SwapAggregator
impl PartialOrd for SwapAggregator
Source§impl Serialize for SwapAggregator
impl Serialize for SwapAggregator
impl StructuralPartialEq for SwapAggregator
Auto Trait Implementations§
impl Freeze for SwapAggregator
impl RefUnwindSafe for SwapAggregator
impl Send for SwapAggregator
impl Sync for SwapAggregator
impl Unpin for SwapAggregator
impl UnsafeUnpin for SwapAggregator
impl UnwindSafe for SwapAggregator
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