fireblocks_sdk/models/policy_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/// PolicyStatus : * SUCCESS - success * UNVALIDATED - not validated yet *
15/// INVALID_CONFIGURATION - at least one rule is invalid * PENDING - pending
16/// approval * PENDING_CONSOLE_APPROVAL - pending approval from the console app
17/// * AWAITING_QUORUM - pending quorum approval * UNHANDLED_ERROR - unhandled
18/// error
19/// * SUCCESS - success * UNVALIDATED - not validated yet *
20/// INVALID_CONFIGURATION - at least one rule is invalid * PENDING - pending
21/// approval * PENDING_CONSOLE_APPROVAL - pending approval from the console
22/// app * AWAITING_QUORUM - pending quorum approval * UNHANDLED_ERROR -
23/// unhandled error
24#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
25pub enum PolicyStatus {
26 #[serde(rename = "SUCCESS")]
27 Success,
28 #[serde(rename = "UNVALIDATED")]
29 Unvalidated,
30 #[serde(rename = "INVALID_CONFIGURATION")]
31 InvalidConfiguration,
32 #[serde(rename = "PENDING")]
33 Pending,
34 #[serde(rename = "PENDING_CONSOLE_APPROVAL")]
35 PendingConsoleApproval,
36 #[serde(rename = "AWAITING_QUORUM")]
37 AwaitingQuorum,
38 #[serde(rename = "UNHANDLED_ERROR")]
39 UnhandledError,
40}
41
42impl std::fmt::Display for PolicyStatus {
43 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
44 match self {
45 Self::Success => write!(f, "SUCCESS"),
46 Self::Unvalidated => write!(f, "UNVALIDATED"),
47 Self::InvalidConfiguration => write!(f, "INVALID_CONFIGURATION"),
48 Self::Pending => write!(f, "PENDING"),
49 Self::PendingConsoleApproval => write!(f, "PENDING_CONSOLE_APPROVAL"),
50 Self::AwaitingQuorum => write!(f, "AWAITING_QUORUM"),
51 Self::UnhandledError => write!(f, "UNHANDLED_ERROR"),
52 }
53 }
54}
55
56impl Default for PolicyStatus {
57 fn default() -> PolicyStatus {
58 Self::Success
59 }
60}