pub struct ExactInputSwapSimulation {
pub simulation_kind: String,
pub preparation: ExactInputSwapPreparation,
pub snapshot: EvmBlockSnapshot,
pub current_allowance: String,
pub amounts: Vec<String>,
pub amount_out: String,
}Expand description
Result of a simulated prepared swap.
Fields§
§simulation_kind: StringSimulation discriminator.
preparation: ExactInputSwapPreparationFresh unsigned preparation used for this simulation.
snapshot: EvmBlockSnapshotBlock snapshot used for the simulation.
current_allowance: StringCanonical decimal current input-token allowance.
amounts: Vec<String>Exact simulated amounts, input followed by output.
amount_out: StringCanonical decimal simulated output amount.
Trait Implementations§
Source§impl Clone for ExactInputSwapSimulation
impl Clone for ExactInputSwapSimulation
Source§impl Debug for ExactInputSwapSimulation
impl Debug for ExactInputSwapSimulation
impl Eq for ExactInputSwapSimulation
Source§impl PartialEq for ExactInputSwapSimulation
impl PartialEq for ExactInputSwapSimulation
Source§impl Serialize for ExactInputSwapSimulation
impl Serialize for ExactInputSwapSimulation
impl StructuralPartialEq for ExactInputSwapSimulation
Auto Trait Implementations§
impl Freeze for ExactInputSwapSimulation
impl RefUnwindSafe for ExactInputSwapSimulation
impl Send for ExactInputSwapSimulation
impl Sync for ExactInputSwapSimulation
impl Unpin for ExactInputSwapSimulation
impl UnsafeUnpin for ExactInputSwapSimulation
impl UnwindSafe for ExactInputSwapSimulation
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