fireblocks_sdk/models/
workflow_config_status.rs1use {
10 crate::models,
11 serde::{Deserialize, Serialize},
12};
13
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum WorkflowConfigStatus {
17 #[serde(rename = "PENDING")]
18 Pending,
19 #[serde(rename = "VALIDATION_IN_PROGRESS")]
20 ValidationInProgress,
21 #[serde(rename = "VALIDATION_FAILED")]
22 ValidationFailed,
23 #[serde(rename = "READY_FOR_EXECUTION")]
24 ReadyForExecution,
25}
26
27impl std::fmt::Display for WorkflowConfigStatus {
28 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
29 match self {
30 Self::Pending => write!(f, "PENDING"),
31 Self::ValidationInProgress => write!(f, "VALIDATION_IN_PROGRESS"),
32 Self::ValidationFailed => write!(f, "VALIDATION_FAILED"),
33 Self::ReadyForExecution => write!(f, "READY_FOR_EXECUTION"),
34 }
35 }
36}
37
38impl Default for WorkflowConfigStatus {
39 fn default() -> WorkflowConfigStatus {
40 Self::Pending
41 }
42}