pub struct DexPoolBalance {
pub pool_address: String,
pub token_a_address: String,
pub token_a_liquidity_in_usd: String,
pub token_b_address: String,
pub token_b_liquidity_in_usd: String,
}Expand description
DexPoolBalance
JSON schema
{
"type": "object",
"required": [
"poolAddress",
"tokenAAddress",
"tokenALiquidityInUsd",
"tokenBAddress",
"tokenBLiquidityInUsd"
],
"properties": {
"poolAddress": {
"type": "string"
},
"tokenAAddress": {
"type": "string"
},
"tokenALiquidityInUsd": {
"type": "string"
},
"tokenBAddress": {
"type": "string"
},
"tokenBLiquidityInUsd": {
"type": "string"
}
}
}Fields§
§pool_address: String§token_a_address: String§token_a_liquidity_in_usd: String§token_b_address: String§token_b_liquidity_in_usd: StringImplementations§
Source§impl DexPoolBalance
impl DexPoolBalance
pub fn builder() -> DexPoolBalance
Trait Implementations§
Source§impl Clone for DexPoolBalance
impl Clone for DexPoolBalance
Source§fn clone(&self) -> DexPoolBalance
fn clone(&self) -> DexPoolBalance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DexPoolBalance
impl Debug for DexPoolBalance
Source§impl<'de> Deserialize<'de> for DexPoolBalance
impl<'de> Deserialize<'de> for DexPoolBalance
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<&DexPoolBalance> for DexPoolBalance
impl From<&DexPoolBalance> for DexPoolBalance
Source§fn from(value: &DexPoolBalance) -> Self
fn from(value: &DexPoolBalance) -> Self
Converts to this type from the input type.
Source§impl From<DexPoolBalance> for DexPoolBalance
impl From<DexPoolBalance> for DexPoolBalance
Source§fn from(value: DexPoolBalance) -> Self
fn from(value: DexPoolBalance) -> Self
Converts to this type from the input type.
Source§impl Serialize for DexPoolBalance
impl Serialize for DexPoolBalance
Source§impl TryFrom<DexPoolBalance> for DexPoolBalance
impl TryFrom<DexPoolBalance> for DexPoolBalance
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: DexPoolBalance) -> Result<Self, ConversionError>
fn try_from(value: DexPoolBalance) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DexPoolBalance
impl RefUnwindSafe for DexPoolBalance
impl Send for DexPoolBalance
impl Sync for DexPoolBalance
impl Unpin for DexPoolBalance
impl UnsafeUnpin for DexPoolBalance
impl UnwindSafe for DexPoolBalance
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