fireblocks_sdk/models/
notification_status.rs1use {
10 crate::models,
11 serde::{Deserialize, Serialize},
12};
13
14#[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}