photon_api/models/
tree_context_info.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 TreeContextInfo {
15    /// A Solana public key represented as a base58 string.
16    #[serde(rename = "cpiContext", skip_serializing_if = "Option::is_none")]
17    pub cpi_context: Option<String>,
18    /// A Solana public key represented as a base58 string.
19    #[serde(rename = "queue")]
20    pub queue: String,
21    /// A Solana public key represented as a base58 string.
22    #[serde(rename = "tree")]
23    pub tree: String,
24    #[serde(rename = "treeType")]
25    pub tree_type: u16,
26}
27
28impl TreeContextInfo {
29    pub fn new(queue: String, tree: String, tree_type: u16) -> TreeContextInfo {
30        TreeContextInfo {
31            cpi_context: None,
32            queue,
33            tree,
34            tree_type,
35        }
36    }
37}