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