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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct OutputQueueDataV2 {
    #[serde(rename = "leafIndices")]
    pub leaf_indices: Vec<u64>,
    #[serde(rename = "accountHashes")]
    pub account_hashes: Vec<String>,
    #[serde(rename = "leaves")]
    pub leaves: Vec<String>,
    #[serde(rename = "firstQueueIndex")]
    pub first_queue_index: u64,
    #[serde(rename = "nextIndex")]
    pub next_index: u64,
    #[serde(rename = "leavesHashChains")]
    pub leaves_hash_chains: Vec<String>,
}

impl OutputQueueDataV2 {
    pub fn new(
        leaf_indices: Vec<u64>,
        account_hashes: Vec<String>,
        leaves: Vec<String>,
        first_queue_index: u64,
        next_index: u64,
        leaves_hash_chains: Vec<String>,
    ) -> OutputQueueDataV2 {
        OutputQueueDataV2 {
            leaf_indices,
            account_hashes,
            leaves,
            first_queue_index,
            next_index,
            leaves_hash_chains,
        }
    }
}
