photon_api/models/
compression_info_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 CompressionInfoV2 {
15    #[serde(rename = "closedAccounts")]
16    pub closed_accounts: Vec<models::ClosedAccountWithOptionalTokenDataV2>,
17    #[serde(rename = "openedAccounts")]
18    pub opened_accounts: Vec<models::AccountWithOptionalTokenDataV2>,
19}
20
21impl CompressionInfoV2 {
22    pub fn new(
23        closed_accounts: Vec<models::ClosedAccountWithOptionalTokenDataV2>,
24        opened_accounts: Vec<models::AccountWithOptionalTokenDataV2>,
25    ) -> CompressionInfoV2 {
26        CompressionInfoV2 {
27            closed_accounts,
28            opened_accounts,
29        }
30    }
31}