pub struct PageResponseDexPoolDataItem {
pub chain: String,
pub pool_address: String,
pub program_address: Option<String>,
pub protocol_family: Option<String>,
pub token_a_address: String,
pub token_b_address: String,
pub tvl_in_sol: Option<String>,
pub tvl_in_usd: Option<String>,
}Expand description
DEX pool
JSON schema
{
"description": "DEX pool",
"type": "object",
"required": [
"chain",
"poolAddress",
"tokenAAddress",
"tokenBAddress"
],
"properties": {
"chain": {
"description": "Chain",
"examples": [
"sol"
],
"type": "string"
},
"poolAddress": {
"description": "Pool address",
"examples": [
"58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2"
],
"type": "string"
},
"programAddress": {
"description": "DEX program address",
"examples": [
"675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"
],
"type": "string"
},
"protocolFamily": {
"description": "Protocol family",
"examples": [
"raydium"
],
"type": "string"
},
"tokenAAddress": {
"description": "Token A address",
"examples": [
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
],
"type": "string"
},
"tokenBAddress": {
"description": "Token B address",
"examples": [
"So11111111111111111111111111111111111111112"
],
"type": "string"
},
"tvlInSol": {
"description": "TVL in native token",
"examples": [
"1000000.45"
],
"type": "string"
},
"tvlInUsd": {
"description": "TVL in USD",
"examples": [
"1000000.45"
],
"type": "string"
}
}
}Fields§
§chain: StringChain
pool_address: StringPool address
program_address: Option<String>DEX program address
protocol_family: Option<String>Protocol family
token_a_address: StringToken A address
token_b_address: StringToken B address
tvl_in_sol: Option<String>TVL in native token
tvl_in_usd: Option<String>TVL in USD
Implementations§
Trait Implementations§
Source§impl Clone for PageResponseDexPoolDataItem
impl Clone for PageResponseDexPoolDataItem
Source§fn clone(&self) -> PageResponseDexPoolDataItem
fn clone(&self) -> PageResponseDexPoolDataItem
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 PageResponseDexPoolDataItem
impl Debug for PageResponseDexPoolDataItem
Source§impl<'de> Deserialize<'de> for PageResponseDexPoolDataItem
impl<'de> Deserialize<'de> for PageResponseDexPoolDataItem
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<&PageResponseDexPoolDataItem> for PageResponseDexPoolDataItem
impl From<&PageResponseDexPoolDataItem> for PageResponseDexPoolDataItem
Source§fn from(value: &PageResponseDexPoolDataItem) -> Self
fn from(value: &PageResponseDexPoolDataItem) -> Self
Converts to this type from the input type.
Source§impl From<PageResponseDexPoolDataItem> for PageResponseDexPoolDataItem
impl From<PageResponseDexPoolDataItem> for PageResponseDexPoolDataItem
Source§fn from(value: PageResponseDexPoolDataItem) -> Self
fn from(value: PageResponseDexPoolDataItem) -> Self
Converts to this type from the input type.
Source§impl TryFrom<PageResponseDexPoolDataItem> for PageResponseDexPoolDataItem
impl TryFrom<PageResponseDexPoolDataItem> for PageResponseDexPoolDataItem
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PageResponseDexPoolDataItem) -> Result<Self, ConversionError>
fn try_from(value: PageResponseDexPoolDataItem) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PageResponseDexPoolDataItem
impl RefUnwindSafe for PageResponseDexPoolDataItem
impl Send for PageResponseDexPoolDataItem
impl Sync for PageResponseDexPoolDataItem
impl Unpin for PageResponseDexPoolDataItem
impl UnsafeUnpin for PageResponseDexPoolDataItem
impl UnwindSafe for PageResponseDexPoolDataItem
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