Skip to main content

ark_rest/models/
get_commitment_tx_response.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 GetCommitmentTxResponse {
17    #[serde(rename = "batches", skip_serializing_if = "Option::is_none")]
18    pub batches: Option<std::collections::HashMap<String, models::IndexerBatch>>,
19    #[serde(rename = "endedAt", skip_serializing_if = "Option::is_none")]
20    pub ended_at: Option<String>,
21    #[serde(rename = "startedAt", skip_serializing_if = "Option::is_none")]
22    pub started_at: Option<String>,
23    #[serde(rename = "totalInputAmount", skip_serializing_if = "Option::is_none")]
24    pub total_input_amount: Option<i32>,
25    #[serde(rename = "totalInputVtxos", skip_serializing_if = "Option::is_none")]
26    pub total_input_vtxos: Option<i32>,
27    #[serde(rename = "totalOutputAmount", skip_serializing_if = "Option::is_none")]
28    pub total_output_amount: Option<i32>,
29    #[serde(rename = "totalOutputVtxos", skip_serializing_if = "Option::is_none")]
30    pub total_output_vtxos: Option<i32>,
31}
32
33impl GetCommitmentTxResponse {
34    pub fn new() -> GetCommitmentTxResponse {
35        GetCommitmentTxResponse {
36            batches: None,
37            ended_at: None,
38            started_at: None,
39            total_input_amount: None,
40            total_input_vtxos: None,
41            total_output_amount: None,
42            total_output_vtxos: None,
43        }
44    }
45}