photon_api/models/
token_balance_list.rs

1/*
2 * photon-indexer
3 *
4 * Solana indexer for general compression
5 *
6 * The version of the OpenAPI document: 0.45.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct TokenBalanceList {
15    #[serde(
16        rename = "cursor",
17        default,
18        with = "::serde_with::rust::double_option",
19        skip_serializing_if = "Option::is_none"
20    )]
21    pub cursor: Option<Option<String>>,
22    #[serde(rename = "token_balances")]
23    pub token_balances: Vec<models::TokenBalance>,
24}
25
26impl TokenBalanceList {
27    pub fn new(token_balances: Vec<models::TokenBalance>) -> TokenBalanceList {
28        TokenBalanceList {
29            cursor: None,
30            token_balances,
31        }
32    }
33}