fireblocks_sdk/models/
config_change_request_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 ConfigChangeRequestStatus {
17    #[serde(rename = "WAITING_FOR_APPROVAL")]
18    WaitingForApproval,
19    #[serde(rename = "APPROVED")]
20    Approved,
21    #[serde(rename = "CANCELLED")]
22    Cancelled,
23    #[serde(rename = "REJECTED")]
24    Rejected,
25    #[serde(rename = "FAILED")]
26    Failed,
27}
28
29impl std::fmt::Display for ConfigChangeRequestStatus {
30    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
31        match self {
32            Self::WaitingForApproval => write!(f, "WAITING_FOR_APPROVAL"),
33            Self::Approved => write!(f, "APPROVED"),
34            Self::Cancelled => write!(f, "CANCELLED"),
35            Self::Rejected => write!(f, "REJECTED"),
36            Self::Failed => write!(f, "FAILED"),
37        }
38    }
39}
40
41impl Default for ConfigChangeRequestStatus {
42    fn default() -> ConfigChangeRequestStatus {
43        Self::WaitingForApproval
44    }
45}