pub struct RankingPool {
pub balance: Option<DexPoolBalance>,
pub chain: Option<String>,
pub created_at_ms: Option<i64>,
pub dex: Option<Dex>,
pub pool_address: String,
pub token: Option<Token>,
pub token_a_address: String,
pub token_b_address: String,
}Expand description
RankingPool
JSON schema
{
"type": "object",
"required": [
"poolAddress",
"tokenAAddress",
"tokenBAddress"
],
"properties": {
"balance": {
"$ref": "#/components/schemas/DexPoolBalance"
},
"chain": {
"type": "string"
},
"createdAtMs": {
"type": "integer",
"format": "int64"
},
"dex": {
"$ref": "#/components/schemas/Dex"
},
"poolAddress": {
"type": "string"
},
"token": {
"$ref": "#/components/schemas/Token"
},
"tokenAAddress": {
"type": "string"
},
"tokenBAddress": {
"type": "string"
}
}
}Fields§
§balance: Option<DexPoolBalance>§chain: Option<String>§created_at_ms: Option<i64>§dex: Option<Dex>§pool_address: String§token: Option<Token>§token_a_address: String§token_b_address: StringImplementations§
Source§impl RankingPool
impl RankingPool
pub fn builder() -> RankingPool
Trait Implementations§
Source§impl Clone for RankingPool
impl Clone for RankingPool
Source§fn clone(&self) -> RankingPool
fn clone(&self) -> RankingPool
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 RankingPool
impl Debug for RankingPool
Source§impl<'de> Deserialize<'de> for RankingPool
impl<'de> Deserialize<'de> for RankingPool
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<&RankingPool> for RankingPool
impl From<&RankingPool> for RankingPool
Source§fn from(value: &RankingPool) -> Self
fn from(value: &RankingPool) -> Self
Converts to this type from the input type.
Source§impl From<RankingPool> for RankingPool
impl From<RankingPool> for RankingPool
Source§fn from(value: RankingPool) -> Self
fn from(value: RankingPool) -> Self
Converts to this type from the input type.
Source§impl Serialize for RankingPool
impl Serialize for RankingPool
Source§impl TryFrom<RankingPool> for RankingPool
impl TryFrom<RankingPool> for RankingPool
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: RankingPool) -> Result<Self, ConversionError>
fn try_from(value: RankingPool) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RankingPool
impl RefUnwindSafe for RankingPool
impl Send for RankingPool
impl Sync for RankingPool
impl Unpin for RankingPool
impl UnsafeUnpin for RankingPool
impl UnwindSafe for RankingPool
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