pub enum ReplacementNotification {
Requote(RequoteNotification),
Venue(VenueNotification),
Original(OriginalNotification),
}Expand description
One reroute result for an original swap, streamed over replacementSubscribe: through
the router, directly to a venue, or the original swap replayed as the baseline. Nothing stands
in for the original. Tagged by kind, with the variant’s fields at the top level beside it.
Variants§
Requote(RequoteNotification)
A reroute through the router: the whole transaction re-quoted
("kind": "requote").
Venue(VenueNotification)
A reroute directly to a venue: one hop re-priced through a venue template
("kind": "directFill").
Original(OriginalNotification)
The original swap replayed as the baseline ("kind": "original").
Implementations§
Source§impl ReplacementNotification
impl ReplacementNotification
Sourcepub const fn core(&self) -> &ReplacementCore
pub const fn core(&self) -> &ReplacementCore
What every kind carries, whichever shape it arrived in.
Trait Implementations§
Source§impl Clone for ReplacementNotification
impl Clone for ReplacementNotification
Source§impl Debug for ReplacementNotification
impl Debug for ReplacementNotification
Source§impl<'de> Deserialize<'de> for ReplacementNotification
impl<'de> Deserialize<'de> for ReplacementNotification
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
Auto Trait Implementations§
impl Forget for ReplacementNotification
impl Freeze for ReplacementNotification
impl Move for ReplacementNotification
impl RefUnwindSafe for ReplacementNotification
impl Send for ReplacementNotification
impl Sync for ReplacementNotification
impl Unpin for ReplacementNotification
impl UnsafeUnpin for ReplacementNotification
impl UnwindSafe for ReplacementNotification
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