pub struct NormalizedYield {
pub pool_id: String,
pub symbol: String,
pub project: String,
pub chain: String,
pub apy_base: Option<f64>,
pub apy_reward: Option<f64>,
pub apy_total: Option<f64>,
pub tvl_usd: Option<f64>,
pub underlying_tokens: Vec<String>,
pub stablecoin: Option<bool>,
pub url: Option<String>,
}Expand description
Normalized yield pool data
Fields§
§pool_id: StringPool/vault identifier (address or ID)
symbol: StringPool name or symbol
project: StringProject/protocol name
chain: StringChain name
apy_base: Option<f64>Base APY (trading fees, interest)
apy_reward: Option<f64>Reward APY (token incentives)
apy_total: Option<f64>Total APY (base + reward)
tvl_usd: Option<f64>Total value locked in USD
underlying_tokens: Vec<String>Underlying tokens
stablecoin: Option<bool>Whether this is a stablecoin pool
url: Option<String>URL for more info
Trait Implementations§
Source§impl Clone for NormalizedYield
impl Clone for NormalizedYield
Source§fn clone(&self) -> NormalizedYield
fn clone(&self) -> NormalizedYield
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 NormalizedYield
impl Debug for NormalizedYield
Source§impl<'de> Deserialize<'de> for NormalizedYield
impl<'de> Deserialize<'de> for NormalizedYield
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 NormalizedYield
impl RefUnwindSafe for NormalizedYield
impl Send for NormalizedYield
impl Sync for NormalizedYield
impl Unpin for NormalizedYield
impl UnwindSafe for NormalizedYield
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
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