fireblocks_sdk/models/
notification_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/// NotificationStatus : The status of the Notification
15/// The status of the Notification
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum NotificationStatus {
18    #[serde(rename = "COMPLETED")]
19    Completed,
20    #[serde(rename = "FAILED")]
21    Failed,
22    #[serde(rename = "IN_PROGRESS")]
23    InProgress,
24    #[serde(rename = "ON_HOLD")]
25    OnHold,
26}
27
28impl std::fmt::Display for NotificationStatus {
29    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
30        match self {
31            Self::Completed => write!(f, "COMPLETED"),
32            Self::Failed => write!(f, "FAILED"),
33            Self::InProgress => write!(f, "IN_PROGRESS"),
34            Self::OnHold => write!(f, "ON_HOLD"),
35        }
36    }
37}
38
39impl Default for NotificationStatus {
40    fn default() -> NotificationStatus {
41        Self::Completed
42    }
43}