pub struct DexPool {
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<'de> Deserialize<'de> for DexPool
impl<'de> Deserialize<'de> for DexPool
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 DexPool
impl RefUnwindSafe for DexPool
impl Send for DexPool
impl Sync for DexPool
impl Unpin for DexPool
impl UnsafeUnpin for DexPool
impl UnwindSafe for DexPool
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