/*
 * 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 RootIndex {
    #[serde(rename = "proveByIndex")]
    pub prove_by_index: bool,
    #[serde(rename = "rootIndex")]
    pub root_index: u16,
}

impl RootIndex {
    pub fn new(prove_by_index: bool, root_index: u16) -> RootIndex {
        RootIndex {
            prove_by_index,
            root_index,
        }
    }
}
