pub enum DefiData {
Block(Block),
Pool(Pool),
PoolSwap(PoolSwap),
PoolLiquidityUpdate(PoolLiquidityUpdate),
}
Expand description
Represents DeFi-specific data events in a decentralized exchange ecosystem.
Variants§
Block(Block)
A block completion in a blockchain network.
Pool(Pool)
A DEX liquidity pool definition or update.
PoolSwap(PoolSwap)
A token swap transaction on a decentralized exchange.
PoolLiquidityUpdate(PoolLiquidityUpdate)
A liquidity update event (mint/burn) in a DEX pool.
Implementations§
Source§impl DefiData
impl DefiData
Sourcepub fn instrument_id(&self) -> InstrumentId
pub fn instrument_id(&self) -> InstrumentId
Returns the instrument ID associated with this DeFi data.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DefiData
impl<'de> Deserialize<'de> for DefiData
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
Source§impl From<PoolLiquidityUpdate> for DefiData
impl From<PoolLiquidityUpdate> for DefiData
Source§fn from(value: PoolLiquidityUpdate) -> Self
fn from(value: PoolLiquidityUpdate) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for DefiData
Auto Trait Implementations§
impl Freeze for DefiData
impl RefUnwindSafe for DefiData
impl Send for DefiData
impl Sync for DefiData
impl Unpin for DefiData
impl UnwindSafe for DefiData
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> Separable for Twhere
T: Display,
impl<T> Separable for Twhere
T: Display,
Source§fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
Adds separators according to the given
SeparatorPolicy
. Read moreSource§fn separate_with_commas(&self) -> String
fn separate_with_commas(&self) -> String
Inserts a comma every three digits from the right. Read more
Source§fn separate_with_spaces(&self) -> String
fn separate_with_spaces(&self) -> String
Inserts a space every three digits from the right. Read more
Source§fn separate_with_dots(&self) -> String
fn separate_with_dots(&self) -> String
Inserts a period every three digits from the right. Read more
Source§fn separate_with_underscores(&self) -> String
fn separate_with_underscores(&self) -> String
Inserts an underscore every three digits from the right. Read more