pub struct BatchSwapStep {
pub pool_id: B256,
pub asset_in_index: u64,
pub asset_out_index: u64,
pub amount: U256,
pub user_data: Bytes,
}Expand description
An encoded Balancer batch swap step.
Corresponds to the TypeScript BatchSwapStep type.
Fields§
§pool_id: B256The Balancer pool ID.
asset_in_index: u64Index of the input token in the token array.
asset_out_index: u64Index of the output token in the token array.
amount: U256The amount to swap.
user_data: BytesAdditional pool user data.
Trait Implementations§
Source§impl Clone for BatchSwapStep
impl Clone for BatchSwapStep
Source§fn clone(&self) -> BatchSwapStep
fn clone(&self) -> BatchSwapStep
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 BatchSwapStep
impl Debug for BatchSwapStep
Source§impl PartialEq for BatchSwapStep
impl PartialEq for BatchSwapStep
impl Eq for BatchSwapStep
impl StructuralPartialEq for BatchSwapStep
Auto Trait Implementations§
impl !Freeze for BatchSwapStep
impl RefUnwindSafe for BatchSwapStep
impl Send for BatchSwapStep
impl Sync for BatchSwapStep
impl Unpin for BatchSwapStep
impl UnsafeUnpin for BatchSwapStep
impl UnwindSafe for BatchSwapStep
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