pub struct LiquidityPool {
pub dex: String,
pub token_a: String,
pub token_b: String,
pub liquidity: u64,
pub reserve_a: u64,
pub reserve_b: u64,
pub fee_rate: f64,
}Expand description
liquidity pool info
Fields§
§dex: String§token_a: String§token_b: String§liquidity: u64§reserve_a: u64§reserve_b: u64§fee_rate: f64Trait Implementations§
Source§impl Clone for LiquidityPool
impl Clone for LiquidityPool
Source§fn clone(&self) -> LiquidityPool
fn clone(&self) -> LiquidityPool
Returns a duplicate of the value. Read more
1.0.0§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 LiquidityPool
impl RefUnwindSafe for LiquidityPool
impl Send for LiquidityPool
impl Sync for LiquidityPool
impl Unpin for LiquidityPool
impl UnwindSafe for LiquidityPool
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)