Skip to main content

ark_rest/models/
tree_tx_event.rs

1/*
2 * Ark API
3 *
4 * Combined Ark Service, Indexer, Admin, Signer Manager, and Wallet API
5 *
6 * The version of the OpenAPI document: 1.0.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::Deserialize;
13use serde::Serialize;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TreeTxEvent {
17    #[serde(rename = "batchIndex", skip_serializing_if = "Option::is_none")]
18    pub batch_index: Option<i32>,
19    /// output index -> child txid
20    #[serde(rename = "children", skip_serializing_if = "Option::is_none")]
21    pub children: Option<std::collections::HashMap<String, String>>,
22    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
23    pub id: Option<String>,
24    #[serde(rename = "topic", skip_serializing_if = "Option::is_none")]
25    pub topic: Option<Vec<String>>,
26    #[serde(rename = "tx", skip_serializing_if = "Option::is_none")]
27    pub tx: Option<String>,
28    #[serde(rename = "txid", skip_serializing_if = "Option::is_none")]
29    pub txid: Option<String>,
30}
31
32impl TreeTxEvent {
33    pub fn new() -> TreeTxEvent {
34        TreeTxEvent {
35            batch_index: None,
36            children: None,
37            id: None,
38            topic: None,
39            tx: None,
40            txid: None,
41        }
42    }
43}