fireblocks_sdk/models/
api_user_role.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/// ApiUserRole : The role of the API Key
15/// The role of the API Key
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum ApiUserRole {
18    #[serde(rename = "ADMIN")]
19    Admin,
20    #[serde(rename = "SIGNER")]
21    Signer,
22    #[serde(rename = "COLLATERALS_SIGNER")]
23    CollateralsSigner,
24    #[serde(rename = "EDITOR")]
25    Editor,
26    #[serde(rename = "APPROVER")]
27    Approver,
28    #[serde(rename = "VIEWER")]
29    Viewer,
30    #[serde(rename = "NON_SIGNING_ADMIN")]
31    NonSigningAdmin,
32    #[serde(rename = "AUDITOR")]
33    Auditor,
34    #[serde(rename = "NCW_ADMIN")]
35    NcwAdmin,
36    #[serde(rename = "NCW_SIGNER")]
37    NcwSigner,
38}
39
40impl std::fmt::Display for ApiUserRole {
41    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
42        match self {
43            Self::Admin => write!(f, "ADMIN"),
44            Self::Signer => write!(f, "SIGNER"),
45            Self::CollateralsSigner => write!(f, "COLLATERALS_SIGNER"),
46            Self::Editor => write!(f, "EDITOR"),
47            Self::Approver => write!(f, "APPROVER"),
48            Self::Viewer => write!(f, "VIEWER"),
49            Self::NonSigningAdmin => write!(f, "NON_SIGNING_ADMIN"),
50            Self::Auditor => write!(f, "AUDITOR"),
51            Self::NcwAdmin => write!(f, "NCW_ADMIN"),
52            Self::NcwSigner => write!(f, "NCW_SIGNER"),
53        }
54    }
55}
56
57impl Default for ApiUserRole {
58    fn default() -> ApiUserRole {
59        Self::Admin
60    }
61}