photon_api/models/address_with_tree.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 AddressWithTree {
15 /// A Solana public key represented as a base58 string.
16 #[serde(rename = "address")]
17 pub address: String,
18 /// A Solana public key represented as a base58 string.
19 #[serde(rename = "tree")]
20 pub tree: String,
21}
22
23impl AddressWithTree {
24 pub fn new(address: String, tree: String) -> AddressWithTree {
25 AddressWithTree { address, tree }
26 }
27}