fireblocks_sdk/models/
execution_operation_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///
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum ExecutionOperationStatus {
17    #[serde(rename = "PENDING")]
18    Pending,
19    #[serde(rename = "VALIDATION_IN_PROGRESS")]
20    ValidationInProgress,
21    #[serde(rename = "VALIDATION_FAILED")]
22    ValidationFailed,
23    #[serde(rename = "VALIDATION_COMPLETED")]
24    ValidationCompleted,
25    #[serde(rename = "PREVIEW_REQUESTED")]
26    PreviewRequested,
27    #[serde(rename = "PREVIEW_IN_PROGRESS")]
28    PreviewInProgress,
29    #[serde(rename = "PREVIEW_FAILED")]
30    PreviewFailed,
31    #[serde(rename = "READY_FOR_LAUNCH")]
32    ReadyForLaunch,
33    #[serde(rename = "EXECUTION_REQUESTED")]
34    ExecutionRequested,
35    #[serde(rename = "EXECUTION_IN_PROGRESS")]
36    ExecutionInProgress,
37    #[serde(rename = "EXECUTION_COMPLETED")]
38    ExecutionCompleted,
39    #[serde(rename = "EXECUTION_FAILED")]
40    ExecutionFailed,
41}
42
43impl std::fmt::Display for ExecutionOperationStatus {
44    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
45        match self {
46            Self::Pending => write!(f, "PENDING"),
47            Self::ValidationInProgress => write!(f, "VALIDATION_IN_PROGRESS"),
48            Self::ValidationFailed => write!(f, "VALIDATION_FAILED"),
49            Self::ValidationCompleted => write!(f, "VALIDATION_COMPLETED"),
50            Self::PreviewRequested => write!(f, "PREVIEW_REQUESTED"),
51            Self::PreviewInProgress => write!(f, "PREVIEW_IN_PROGRESS"),
52            Self::PreviewFailed => write!(f, "PREVIEW_FAILED"),
53            Self::ReadyForLaunch => write!(f, "READY_FOR_LAUNCH"),
54            Self::ExecutionRequested => write!(f, "EXECUTION_REQUESTED"),
55            Self::ExecutionInProgress => write!(f, "EXECUTION_IN_PROGRESS"),
56            Self::ExecutionCompleted => write!(f, "EXECUTION_COMPLETED"),
57            Self::ExecutionFailed => write!(f, "EXECUTION_FAILED"),
58        }
59    }
60}
61
62impl Default for ExecutionOperationStatus {
63    fn default() -> ExecutionOperationStatus {
64        Self::Pending
65    }
66}