pub struct TopTradersDto {
pub buy_amount: String,
pub buy_amount_in_native: String,
pub buy_amount_in_usd: String,
pub buy_count: i64,
pub sell_amount: String,
pub sell_amount_in_native: String,
pub sell_amount_in_usd: String,
pub sell_count: i64,
pub token_address: String,
pub trade_amount: String,
pub trade_count: i64,
pub wallet_address: String,
}Expand description
TopTradersDto
JSON schema
{
"type": "object",
"required": [
"buyAmount",
"buyAmountInNative",
"buyAmountInUsd",
"buyCount",
"sellAmount",
"sellAmountInNative",
"sellAmountInUsd",
"sellCount",
"tokenAddress",
"tradeAmount",
"tradeCount",
"walletAddress"
],
"properties": {
"buyAmount": {
"description": "DTO.TRADE.TOP_TRADERS.BUY_AMOUNT",
"examples": [
"600000"
],
"type": "string"
},
"buyAmountInNative": {
"description": "DTO.TRADE.TOP_TRADERS.BUY_AMOUNT_IN_NATIVE",
"examples": [
"100.5"
],
"type": "string"
},
"buyAmountInUsd": {
"description": "DTO.TRADE.TOP_TRADERS.BUY_AMOUNT_IN_USD",
"examples": [
"12000.50"
],
"type": "string"
},
"buyCount": {
"description": "DTO.TRADE.TOP_TRADERS.BUY_COUNT",
"examples": [
60
],
"type": "integer",
"format": "int64"
},
"sellAmount": {
"description": "DTO.TRADE.TOP_TRADERS.SELL_AMOUNT",
"examples": [
"400000"
],
"type": "string"
},
"sellAmountInNative": {
"description": "DTO.TRADE.TOP_TRADERS.SELL_AMOUNT_IN_NATIVE",
"examples": [
"66.8"
],
"type": "string"
},
"sellAmountInUsd": {
"description": "DTO.TRADE.TOP_TRADERS.SELL_AMOUNT_IN_USD",
"examples": [
"8000.30"
],
"type": "string"
},
"sellCount": {
"description": "DTO.TRADE.TOP_TRADERS.SELL_COUNT",
"examples": [
40
],
"type": "integer",
"format": "int64"
},
"tokenAddress": {
"description": "DTO.TRADE.TOP_TRADERS.TOKEN_ADDRESS",
"examples": [
"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
],
"type": "string"
},
"tradeAmount": {
"description": "DTO.TRADE.TOP_TRADERS.TRADE_AMOUNT",
"examples": [
"1000000"
],
"type": "string"
},
"tradeCount": {
"description": "DTO.TRADE.TOP_TRADERS.TRADE_COUNT",
"examples": [
100
],
"type": "integer",
"format": "int64"
},
"walletAddress": {
"description": "DTO.TRADE.TOP_TRADERS.WALLET_ADDRESS",
"examples": [
"3xd4LGVWtYXLBspR6X5JWbW49NXmEehfPtX6Kqx98b4w"
],
"type": "string"
}
}
}Fields§
§buy_amount: StringDTO.TRADE.TOP_TRADERS.BUY_AMOUNT
buy_amount_in_native: StringDTO.TRADE.TOP_TRADERS.BUY_AMOUNT_IN_NATIVE
buy_amount_in_usd: StringDTO.TRADE.TOP_TRADERS.BUY_AMOUNT_IN_USD
buy_count: i64DTO.TRADE.TOP_TRADERS.BUY_COUNT
sell_amount: StringDTO.TRADE.TOP_TRADERS.SELL_AMOUNT
sell_amount_in_native: StringDTO.TRADE.TOP_TRADERS.SELL_AMOUNT_IN_NATIVE
sell_amount_in_usd: StringDTO.TRADE.TOP_TRADERS.SELL_AMOUNT_IN_USD
sell_count: i64DTO.TRADE.TOP_TRADERS.SELL_COUNT
token_address: StringDTO.TRADE.TOP_TRADERS.TOKEN_ADDRESS
trade_amount: StringDTO.TRADE.TOP_TRADERS.TRADE_AMOUNT
trade_count: i64DTO.TRADE.TOP_TRADERS.TRADE_COUNT
wallet_address: StringDTO.TRADE.TOP_TRADERS.WALLET_ADDRESS
Implementations§
Source§impl TopTradersDto
impl TopTradersDto
pub fn builder() -> TopTradersDto
Trait Implementations§
Source§impl Clone for TopTradersDto
impl Clone for TopTradersDto
Source§fn clone(&self) -> TopTradersDto
fn clone(&self) -> TopTradersDto
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 TopTradersDto
impl Debug for TopTradersDto
Source§impl<'de> Deserialize<'de> for TopTradersDto
impl<'de> Deserialize<'de> for TopTradersDto
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<&TopTradersDto> for TopTradersDto
impl From<&TopTradersDto> for TopTradersDto
Source§fn from(value: &TopTradersDto) -> Self
fn from(value: &TopTradersDto) -> Self
Converts to this type from the input type.
Source§impl From<TopTradersDto> for TopTradersDto
impl From<TopTradersDto> for TopTradersDto
Source§fn from(value: TopTradersDto) -> Self
fn from(value: TopTradersDto) -> Self
Converts to this type from the input type.
Source§impl Serialize for TopTradersDto
impl Serialize for TopTradersDto
Source§impl TryFrom<TopTradersDto> for TopTradersDto
impl TryFrom<TopTradersDto> for TopTradersDto
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TopTradersDto) -> Result<Self, ConversionError>
fn try_from(value: TopTradersDto) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TopTradersDto
impl RefUnwindSafe for TopTradersDto
impl Send for TopTradersDto
impl Sync for TopTradersDto
impl Unpin for TopTradersDto
impl UnwindSafe for TopTradersDto
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