pub struct DirectFillNotification {
pub core: ReplacementCore,
pub comparison: L1Score,
pub template: String,
pub input_mint: Address,
pub output_mint: Address,
pub amount: u64,
pub swap_mode: String,
pub template_fill: Option<u64>,
}Expand description
One direct-fill probe’s result - the DirectFill shape of ReplacementNotification: a
single hop re-priced through a direct-fill template, simulated against the state it would
have traded on.
A probe prices ONE hop, so the mints and amount here are the leg’s, never the enclosing swap’s - a route’s endpoints are not its middle leg’s.
Fields§
§core: ReplacementCore§comparison: L1ScoreScored at hop scope: the probed hop’s own L1 output. A probe prices one hop, so it names no route and carries none.
template: StringThe template the hop was rebuilt through.
input_mint: Address§output_mint: Address§amount: u64The hop’s own input amount, in base units.
swap_mode: String§template_fill: Option<u64>What the probed template filled; None unless the probe filled attributably.
Trait Implementations§
Source§impl Clone for DirectFillNotification
impl Clone for DirectFillNotification
Source§impl Debug for DirectFillNotification
impl Debug for DirectFillNotification
Source§impl<'de> Deserialize<'de> for DirectFillNotification
impl<'de> Deserialize<'de> for DirectFillNotification
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 Freeze for DirectFillNotification
impl RefUnwindSafe for DirectFillNotification
impl Send for DirectFillNotification
impl Sync for DirectFillNotification
impl Unpin for DirectFillNotification
impl UnsafeUnpin for DirectFillNotification
impl UnwindSafe for DirectFillNotification
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