#[non_exhaustive]pub struct EnrichedPool {Show 24 fields
pub address: String,
pub apr: String,
pub apr_fees: String,
pub apr_rewards: String,
pub assets: Vec<String>,
pub creator_fee: String,
pub dex: String,
pub fee_in_assets: Vec<String>,
pub fees: Vec<String>,
pub fees_24h_usd: String,
pub last_activity_at: Option<String>,
pub locked_liquidity: Option<String>,
pub lp_fee: String,
pub protocol_fee: String,
pub reserves: Vec<String>,
pub reward_assets: Option<Vec<String>>,
pub rewards: Option<Vec<PoolReward>>,
pub total_supply: String,
pub trade_fee: String,
pub tvl_usd: String,
pub pool_type: String,
pub verified: bool,
pub volume: Vec<String>,
pub volume_24h_usd: String,
}Expand description
Enriched pool record returned inside a pool row.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.address: StringRaw workchain:hex_hash pool address.
apr: StringTotal annual percentage rate represented as a decimal string.
apr_fees: StringFee-derived annual percentage rate represented as a decimal string.
apr_rewards: StringReward-derived annual percentage rate represented as a decimal string.
assets: Vec<String>Ordered raw asset identifiers.
creator_fee: StringCreator fee in basis points, represented as a decimal string.
dex: StringRaw DeDust implementation identifier.
fee_in_assets: Vec<String>Assets for which the pool collects trading fees.
fees: Vec<String>Accumulated fees in raw asset units.
fees_24h_usd: StringFees accrued in the last 24 hours in USD, represented as a decimal string.
last_activity_at: Option<String>Timestamp of the last pool activity, when available.
locked_liquidity: Option<String>Locked liquidity in raw liquidity-token units, when supplied.
lp_fee: StringLiquidity-provider fee in basis points, represented as a decimal string.
protocol_fee: StringProtocol fee in basis points, represented as a decimal string.
reserves: Vec<String>Current reserves in raw asset units.
reward_assets: Option<Vec<String>>Assets used by active pool rewards, when supplied.
rewards: Option<Vec<PoolReward>>Active reward programs, when supplied.
total_supply: StringTotal liquidity-token supply in raw units.
trade_fee: StringTotal trade fee in basis points, represented as a decimal string.
tvl_usd: StringTotal value locked in USD, represented as a decimal string.
pool_type: StringRaw pool type, such as cpmm_v1, cpmm_v2, or stable.
verified: boolWhether DeDust marks the pool as verified.
volume: Vec<String>Trading volume in raw asset units.
volume_24h_usd: StringTrading volume in the last 24 hours in USD, represented as a decimal string.
Implementations§
Source§impl EnrichedPool
impl EnrichedPool
Sourcepub fn with_address(self, value: String) -> Self
pub fn with_address(self, value: String) -> Self
Sets the address field of this struct.
Sourcepub fn with_apr_fees(self, value: String) -> Self
pub fn with_apr_fees(self, value: String) -> Self
Sets the apr_fees field of this struct.
Sourcepub fn with_apr_rewards(self, value: String) -> Self
pub fn with_apr_rewards(self, value: String) -> Self
Sets the apr_rewards field of this struct.
Sourcepub fn with_assets(self, value: Vec<String>) -> Self
pub fn with_assets(self, value: Vec<String>) -> Self
Sets the assets field of this struct.
Sourcepub fn with_creator_fee(self, value: String) -> Self
pub fn with_creator_fee(self, value: String) -> Self
Sets the creator_fee field of this struct.
Sourcepub fn with_fee_in_assets(self, value: Vec<String>) -> Self
pub fn with_fee_in_assets(self, value: Vec<String>) -> Self
Sets the fee_in_assets field of this struct.
Sourcepub fn with_fees_24h_usd(self, value: String) -> Self
pub fn with_fees_24h_usd(self, value: String) -> Self
Sets the fees_24h_usd field of this struct.
Sourcepub fn with_last_activity_at(self, value: String) -> Self
pub fn with_last_activity_at(self, value: String) -> Self
Sets the last_activity_at field of this struct.
Sourcepub fn with_locked_liquidity(self, value: String) -> Self
pub fn with_locked_liquidity(self, value: String) -> Self
Sets the locked_liquidity field of this struct.
Sourcepub fn with_lp_fee(self, value: String) -> Self
pub fn with_lp_fee(self, value: String) -> Self
Sets the lp_fee field of this struct.
Sourcepub fn with_protocol_fee(self, value: String) -> Self
pub fn with_protocol_fee(self, value: String) -> Self
Sets the protocol_fee field of this struct.
Sourcepub fn with_reserves(self, value: Vec<String>) -> Self
pub fn with_reserves(self, value: Vec<String>) -> Self
Sets the reserves field of this struct.
Sourcepub fn with_reward_assets(self, value: Vec<String>) -> Self
pub fn with_reward_assets(self, value: Vec<String>) -> Self
Sets the reward_assets field of this struct.
Sourcepub fn with_rewards(self, value: Vec<PoolReward>) -> Self
pub fn with_rewards(self, value: Vec<PoolReward>) -> Self
Sets the rewards field of this struct.
Sourcepub fn with_total_supply(self, value: String) -> Self
pub fn with_total_supply(self, value: String) -> Self
Sets the total_supply field of this struct.
Sourcepub fn with_trade_fee(self, value: String) -> Self
pub fn with_trade_fee(self, value: String) -> Self
Sets the trade_fee field of this struct.
Sourcepub fn with_tvl_usd(self, value: String) -> Self
pub fn with_tvl_usd(self, value: String) -> Self
Sets the tvl_usd field of this struct.
Sourcepub fn with_pool_type(self, value: String) -> Self
pub fn with_pool_type(self, value: String) -> Self
Sets the pool_type field of this struct.
Sourcepub fn with_verified(self, value: bool) -> Self
pub fn with_verified(self, value: bool) -> Self
Sets the verified field of this struct.
Sourcepub fn with_volume(self, value: Vec<String>) -> Self
pub fn with_volume(self, value: Vec<String>) -> Self
Sets the volume field of this struct.
Sourcepub fn with_volume_24h_usd(self, value: String) -> Self
pub fn with_volume_24h_usd(self, value: String) -> Self
Sets the volume_24h_usd field of this struct.
Trait Implementations§
Source§impl Clone for EnrichedPool
impl Clone for EnrichedPool
Source§fn clone(&self) -> EnrichedPool
fn clone(&self) -> EnrichedPool
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EnrichedPool
impl Debug for EnrichedPool
Source§impl Default for EnrichedPool
impl Default for EnrichedPool
Source§fn default() -> EnrichedPool
fn default() -> EnrichedPool
Source§impl<'de> Deserialize<'de> for EnrichedPool
impl<'de> Deserialize<'de> for EnrichedPool
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>,
impl Eq for EnrichedPool
Source§impl PartialEq for EnrichedPool
impl PartialEq for EnrichedPool
Source§impl Serialize for EnrichedPool
impl Serialize for EnrichedPool
impl StructuralPartialEq for EnrichedPool
Auto Trait Implementations§
impl Freeze for EnrichedPool
impl RefUnwindSafe for EnrichedPool
impl Send for EnrichedPool
impl Sync for EnrichedPool
impl Unpin for EnrichedPool
impl UnsafeUnpin for EnrichedPool
impl UnwindSafe for EnrichedPool
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.