photon_api/models/
token_balance_list_v2.rs

1/*
2 * photon-indexer
3 *
4 * Solana indexer for general compression
5 *
6 * The version of the OpenAPI document: 0.50.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 TokenBalanceListV2 {
15    /// A base 58 encoded string.
16    #[serde(rename = "cursor", skip_serializing_if = "Option::is_none")]
17    pub cursor: Option<String>,
18    #[serde(rename = "items")]
19    pub items: Vec<models::TokenBalance>,
20}
21
22impl TokenBalanceListV2 {
23    pub fn new(items: Vec<models::TokenBalance>) -> TokenBalanceListV2 {
24        TokenBalanceListV2 {
25            cursor: None,
26            items,
27        }
28    }
29}