Skip to main content

ark_rest/models/
submit_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 SubmitTxResponse {
17    #[serde(rename = "arkTxid", skip_serializing_if = "Option::is_none")]
18    pub ark_txid: Option<String>,
19    #[serde(rename = "finalArkTx", skip_serializing_if = "Option::is_none")]
20    pub final_ark_tx: Option<String>,
21    #[serde(
22        rename = "signedCheckpointTxs",
23        skip_serializing_if = "Option::is_none"
24    )]
25    pub signed_checkpoint_txs: Option<Vec<String>>,
26}
27
28impl SubmitTxResponse {
29    pub fn new() -> SubmitTxResponse {
30        SubmitTxResponse {
31            ark_txid: None,
32            final_ark_tx: None,
33            signed_checkpoint_txs: None,
34        }
35    }
36}