fireblocks_sdk/models/
execution_step_status.rs

1// Fireblocks API
2//
3// Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain.  - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
4//
5// The version of the OpenAPI document: 1.8.0
6// Contact: developers@fireblocks.com
7// Generated by: https://openapi-generator.tech
8
9use {
10    crate::models,
11    serde::{Deserialize, Serialize},
12};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ExecutionStepStatus {
16    #[serde(rename = "type")]
17    pub r#type: models::ExecutionStepType,
18    #[serde(rename = "status")]
19    pub status: models::ExecutionStepStatusEnum,
20    #[serde(rename = "fee", skip_serializing_if = "Option::is_none")]
21    pub fee: Option<models::Fee>,
22    #[serde(rename = "txId", skip_serializing_if = "Option::is_none")]
23    pub tx_id: Option<String>,
24    #[serde(rename = "txHash", skip_serializing_if = "Option::is_none")]
25    pub tx_hash: Option<String>,
26    #[serde(rename = "error", skip_serializing_if = "Option::is_none")]
27    pub error: Option<models::ExecutionStepError>,
28}
29
30impl ExecutionStepStatus {
31    pub fn new(
32        r#type: models::ExecutionStepType,
33        status: models::ExecutionStepStatusEnum,
34    ) -> ExecutionStepStatus {
35        ExecutionStepStatus {
36            r#type,
37            status,
38            fee: None,
39            tx_id: None,
40            tx_hash: None,
41            error: None,
42        }
43    }
44}