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