pub struct PoolPreflightCheck {
pub instrument_id: InstrumentId,
pub address: Address,
pub has_deployed_code: bool,
pub fee: Option<u32>,
pub base_token: Address,
pub quote_token: Address,
}Expand description
Preflight check for the selected pool.
Fields§
§instrument_id: InstrumentIdThe instrument ID the pool was selected by.
address: AddressThe pool address.
has_deployed_code: boolWhether non-empty bytecode is deployed at the pool address.
fee: Option<u32>The pool fee tier (hundredths of a bip), required for swap calldata.
base_token: AddressThe resolved base (input) token address.
quote_token: AddressThe resolved quote (output) token address.
Trait Implementations§
Source§impl Clone for PoolPreflightCheck
impl Clone for PoolPreflightCheck
Source§fn clone(&self) -> PoolPreflightCheck
fn clone(&self) -> PoolPreflightCheck
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 moreAuto Trait Implementations§
impl Freeze for PoolPreflightCheck
impl RefUnwindSafe for PoolPreflightCheck
impl Send for PoolPreflightCheck
impl Sync for PoolPreflightCheck
impl Unpin for PoolPreflightCheck
impl UnsafeUnpin for PoolPreflightCheck
impl UnwindSafe for PoolPreflightCheck
Blanket Implementations§
impl<T> Allocation for T
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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