pub struct MatrixTokenEntry {
pub mint: String,
pub symbol: String,
pub name: String,
pub decimals: u8,
pub is_direct: bool,
pub liquidity: HashMap<String, f64>,
pub total_liquidity: f64,
pub total_liquidity_usd: f64,
pub cheapest_source_fee_bps: u16,
pub best_protocol: Option<String>,
}Expand description
Per-token liquidity breakdown across all lending protocols.
Fields§
§mint: String§symbol: String§name: String§decimals: u8§is_direct: bool§liquidity: HashMap<String, f64>Per-protocol available liquidity (human-readable units)
total_liquidity: f64§total_liquidity_usd: f64§cheapest_source_fee_bps: u16§best_protocol: Option<String>Trait Implementations§
Source§impl Clone for MatrixTokenEntry
impl Clone for MatrixTokenEntry
Source§fn clone(&self) -> MatrixTokenEntry
fn clone(&self) -> MatrixTokenEntry
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 MatrixTokenEntry
impl Debug for MatrixTokenEntry
Source§impl<'de> Deserialize<'de> for MatrixTokenEntry
impl<'de> Deserialize<'de> for MatrixTokenEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MatrixTokenEntry
impl RefUnwindSafe for MatrixTokenEntry
impl Send for MatrixTokenEntry
impl Sync for MatrixTokenEntry
impl Unpin for MatrixTokenEntry
impl UnsafeUnpin for MatrixTokenEntry
impl UnwindSafe for MatrixTokenEntry
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more