photon_api/models/
root_index.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 RootIndex {
15    #[serde(rename = "proveByIndex")]
16    pub prove_by_index: bool,
17    #[serde(rename = "rootIndex")]
18    pub root_index: u16,
19}
20
21impl RootIndex {
22    pub fn new(prove_by_index: bool, root_index: u16) -> RootIndex {
23        RootIndex {
24            prove_by_index,
25            root_index,
26        }
27    }
28}