Skip to main content

ark_rest/models/
indexer_node.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 IndexerNode {
17    /// vout -> txid
18    #[serde(rename = "children", skip_serializing_if = "Option::is_none")]
19    pub children: Option<std::collections::HashMap<String, String>>,
20    #[serde(rename = "txid", skip_serializing_if = "Option::is_none")]
21    pub txid: Option<String>,
22}
23
24impl IndexerNode {
25    pub fn new() -> IndexerNode {
26        IndexerNode {
27            children: None,
28            txid: None,
29        }
30    }
31}