pub struct SwapInputs { /* private fields */ }Expand description
Swap inputs for the Odos assemble API
Available only when the v2 feature is enabled.
Implementations§
Source§impl SwapInputs
impl SwapInputs
Sourcepub fn path_definition(&self) -> &Bytes
pub fn path_definition(&self) -> &Bytes
Get the path definition of the swap
Sourcepub fn token_address(&self) -> Address
pub fn token_address(&self) -> Address
Get the token address of the swap
Sourcepub fn relative_value(&self) -> U256
pub fn relative_value(&self) -> U256
Get the relative value of the swap
Sourcepub fn output_token_address(&self) -> Address
pub fn output_token_address(&self) -> Address
Get the output token address of the swap
Sourcepub fn value_out_min(&self) -> U256
pub fn value_out_min(&self) -> U256
Get the value out min of the swap
Trait Implementations§
Source§impl Clone for SwapInputs
impl Clone for SwapInputs
Source§fn clone(&self) -> SwapInputs
fn clone(&self) -> SwapInputs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SwapInputs
impl Debug for SwapInputs
Source§impl TryFrom<OdosV2RouterCalls> for SwapInputs
Available on crate feature v2 only.
impl TryFrom<OdosV2RouterCalls> for SwapInputs
Available on crate feature
v2 only.Source§impl TryFrom<OdosV3RouterCalls> for SwapInputs
Available on crate feature v3 only.
impl TryFrom<OdosV3RouterCalls> for SwapInputs
Available on crate feature
v3 only.Auto Trait Implementations§
impl !Freeze for SwapInputs
impl RefUnwindSafe for SwapInputs
impl Send for SwapInputs
impl Sync for SwapInputs
impl Unpin for SwapInputs
impl UnwindSafe for SwapInputs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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