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