fireblocks_sdk/models/
network_connection_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 NetworkConnectionStatus {
17    #[serde(rename = "WAITING_FOR_APPROVAL")]
18    WaitingForApproval,
19    #[serde(rename = "WAITING_FOR_PEER_APPROVAL")]
20    WaitingForPeerApproval,
21    #[serde(rename = "APPROVED")]
22    Approved,
23    #[serde(rename = "CANCELLED")]
24    Cancelled,
25    #[serde(rename = "FAILED")]
26    Failed,
27    #[serde(rename = "REJECTED")]
28    Rejected,
29    #[serde(rename = "REJECTED_BY_PEER")]
30    RejectedByPeer,
31    #[serde(rename = "REMOVED")]
32    Removed,
33    #[serde(rename = "REMOVED_BY_PEER")]
34    RemovedByPeer,
35}
36
37impl std::fmt::Display for NetworkConnectionStatus {
38    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
39        match self {
40            Self::WaitingForApproval => write!(f, "WAITING_FOR_APPROVAL"),
41            Self::WaitingForPeerApproval => write!(f, "WAITING_FOR_PEER_APPROVAL"),
42            Self::Approved => write!(f, "APPROVED"),
43            Self::Cancelled => write!(f, "CANCELLED"),
44            Self::Failed => write!(f, "FAILED"),
45            Self::Rejected => write!(f, "REJECTED"),
46            Self::RejectedByPeer => write!(f, "REJECTED_BY_PEER"),
47            Self::Removed => write!(f, "REMOVED"),
48            Self::RemovedByPeer => write!(f, "REMOVED_BY_PEER"),
49        }
50    }
51}
52
53impl Default for NetworkConnectionStatus {
54    fn default() -> NetworkConnectionStatus {
55        Self::WaitingForApproval
56    }
57}