photon_api/models/
paginated_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 PaginatedAccountList {
15    /// A 32-byte hash represented as a base58 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::Account>,
20}
21
22impl PaginatedAccountList {
23    pub fn new(items: Vec<models::Account>) -> PaginatedAccountList {
24        PaginatedAccountList {
25            cursor: None,
26            items,
27        }
28    }
29}