/*
 * 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 ClosedAccountV2 {
    #[serde(rename = "account")]
    pub account: Box<models::AccountV2>,
    /// A 32-byte hash represented as a base58 string.
    #[serde(rename = "nullifier")]
    pub nullifier: String,
    /// A 32-byte hash represented as a base58 string.
    #[serde(rename = "txHash")]
    pub tx_hash: String,
}

impl ClosedAccountV2 {
    pub fn new(account: models::AccountV2, nullifier: String, tx_hash: String) -> ClosedAccountV2 {
        ClosedAccountV2 {
            account: Box::new(account),
            nullifier,
            tx_hash,
        }
    }
}
