photon_api/models/
token_account_list.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 TokenAccountList {
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::TokenAccount>,
20}
21
22impl TokenAccountList {
23    pub fn new(items: Vec<models::TokenAccount>) -> TokenAccountList {
24        TokenAccountList {
25            cursor: None,
26            items,
27        }
28    }
29}