fireblocks_sdk/models/
order_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 OrderStatus {
17    #[serde(rename = "CREATED")]
18    Created,
19    #[serde(rename = "PENDING_USER_ACTION")]
20    PendingUserAction,
21    #[serde(rename = "PROCESSING")]
22    Processing,
23    #[serde(rename = "CANCELED")]
24    Canceled,
25    #[serde(rename = "COMPLETED")]
26    Completed,
27    #[serde(rename = "FAILED")]
28    Failed,
29}
30
31impl std::fmt::Display for OrderStatus {
32    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
33        match self {
34            Self::Created => write!(f, "CREATED"),
35            Self::PendingUserAction => write!(f, "PENDING_USER_ACTION"),
36            Self::Processing => write!(f, "PROCESSING"),
37            Self::Canceled => write!(f, "CANCELED"),
38            Self::Completed => write!(f, "COMPLETED"),
39            Self::Failed => write!(f, "FAILED"),
40        }
41    }
42}
43
44impl Default for OrderStatus {
45    fn default() -> OrderStatus {
46        Self::Created
47    }
48}