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