pub struct DexPoolTokenLiquidity { /* private fields */ }Implementations§
Source§impl DexPoolTokenLiquidity
impl DexPoolTokenLiquidity
pub fn amount_in_native<T>(self, value: T) -> Self
pub fn amount_in_usd<T>(self, value: T) -> Self
pub fn price_native<T>(self, value: T) -> Self
pub fn price_usd<T>(self, value: T) -> Self
pub fn token_address<T>(self, value: T) -> Self
pub fn token_decimals<T>(self, value: T) -> Self
pub fn vault_amount<T>(self, value: T) -> Self
Trait Implementations§
Source§impl Clone for DexPoolTokenLiquidity
impl Clone for DexPoolTokenLiquidity
Source§fn clone(&self) -> DexPoolTokenLiquidity
fn clone(&self) -> DexPoolTokenLiquidity
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 DexPoolTokenLiquidity
impl Debug for DexPoolTokenLiquidity
Source§impl Default for DexPoolTokenLiquidity
impl Default for DexPoolTokenLiquidity
Source§impl From<DexPoolTokenLiquidity> for DexPoolTokenLiquidity
impl From<DexPoolTokenLiquidity> for DexPoolTokenLiquidity
Source§fn from(value: DexPoolTokenLiquidity) -> Self
fn from(value: DexPoolTokenLiquidity) -> Self
Converts to this type from the input type.
Source§impl TryFrom<DexPoolTokenLiquidity> for DexPoolTokenLiquidity
impl TryFrom<DexPoolTokenLiquidity> for DexPoolTokenLiquidity
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: DexPoolTokenLiquidity) -> Result<Self, ConversionError>
fn try_from(value: DexPoolTokenLiquidity) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DexPoolTokenLiquidity
impl RefUnwindSafe for DexPoolTokenLiquidity
impl Send for DexPoolTokenLiquidity
impl Sync for DexPoolTokenLiquidity
impl Unpin for DexPoolTokenLiquidity
impl UnwindSafe for DexPoolTokenLiquidity
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