solscan_api/structs/
account_info.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Serialize, Deserialize, PartialEq)]
4pub struct AccountInfo {
5    pub lamports: i64,
6    #[serde(rename = "ownerProgram")]
7    pub owner_program: String,
8    #[serde(rename = "type")]
9    pub account_type: String,
10    #[serde(rename = "rentEpoch")]
11    pub rent_epoch: i64,
12    pub executable: bool,
13    pub account: String,
14    #[serde(rename = "tokenInfo")]
15    pub token_info: TokenInfo,
16}
17
18#[derive(Debug, Serialize, Deserialize, PartialEq)]
19pub struct TokenInfo {
20    pub name: String,
21    pub symbol: String,
22    pub price: f64,
23    pub volume: i64,
24    pub decimals: i64,
25    #[serde(rename = "tokenAuthority")]
26    pub token_authority: Option<serde_json::Value>,
27    pub supply: String,
28    #[serde(rename = "type")]
29    pub token_info_type: String,
30}