fireblocks_sdk/models/
workflow_config_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 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}