photon_api/models/
address_queue_data_v2.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)]
14#[serde(rename_all = "camelCase")]
15#[allow(clippy::too_many_arguments)]
16pub struct AddressQueueDataV2 {
17    pub addresses: Vec<String>,
18    pub queue_indices: Vec<u64>,
19    /// Deduplicated tree nodes for address tree non-inclusion proofs
20    pub nodes: Vec<models::Node>,
21    pub low_element_indices: Vec<u64>,
22    pub low_element_values: Vec<String>,
23    pub low_element_next_indices: Vec<u64>,
24    pub low_element_next_values: Vec<String>,
25    pub leaves_hash_chains: Vec<String>,
26    pub initial_root: String,
27    pub start_index: u64,
28    pub subtrees: Vec<String>,
29    pub root_seq: u64,
30}
31
32impl AddressQueueDataV2 {
33    #[allow(clippy::too_many_arguments)]
34    pub fn new(
35        addresses: Vec<String>,
36        queue_indices: Vec<u64>,
37        nodes: Vec<models::Node>,
38        low_element_indices: Vec<u64>,
39        low_element_values: Vec<String>,
40        low_element_next_indices: Vec<u64>,
41        low_element_next_values: Vec<String>,
42        leaves_hash_chains: Vec<String>,
43        initial_root: String,
44        start_index: u64,
45        subtrees: Vec<String>,
46        root_seq: u64,
47    ) -> AddressQueueDataV2 {
48        AddressQueueDataV2 {
49            addresses,
50            queue_indices,
51            nodes,
52            low_element_indices,
53            low_element_values,
54            low_element_next_indices,
55            low_element_next_values,
56            leaves_hash_chains,
57            initial_root,
58            start_index,
59            subtrees,
60            root_seq,
61        }
62    }
63}