photon-api 0.54.0

Solana indexer for general compression
Documentation
/*
 * photon-indexer
 *
 * Solana indexer for general compression
 *
 * The version of the OpenAPI document: 0.50.0
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::models;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CompressionInfoV2 {
    #[serde(rename = "closedAccounts")]
    pub closed_accounts: Vec<models::ClosedAccountWithOptionalTokenDataV2>,
    #[serde(rename = "openedAccounts")]
    pub opened_accounts: Vec<models::AccountWithOptionalTokenDataV2>,
}

impl CompressionInfoV2 {
    pub fn new(
        closed_accounts: Vec<models::ClosedAccountWithOptionalTokenDataV2>,
        opened_accounts: Vec<models::AccountWithOptionalTokenDataV2>,
    ) -> CompressionInfoV2 {
        CompressionInfoV2 {
            closed_accounts,
            opened_accounts,
        }
    }
}