fireblocks_sdk/models/
staking_provider.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/// StakingProvider : The unique identifier of the staking provider
15/// The unique identifier of the staking provider
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum StakingProvider {
18    #[serde(rename = "kiln")]
19    Kiln,
20    #[serde(rename = "figment")]
21    Figment,
22    #[serde(rename = "lido")]
23    Lido,
24    #[serde(rename = "p2p")]
25    P2p,
26    #[serde(rename = "pierTwo")]
27    PierTwo,
28    #[serde(rename = "blockdaemon")]
29    Blockdaemon,
30    #[serde(rename = "galaxy")]
31    Galaxy,
32}
33
34impl std::fmt::Display for StakingProvider {
35    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
36        match self {
37            Self::Kiln => write!(f, "kiln"),
38            Self::Figment => write!(f, "figment"),
39            Self::Lido => write!(f, "lido"),
40            Self::P2p => write!(f, "p2p"),
41            Self::PierTwo => write!(f, "pierTwo"),
42            Self::Blockdaemon => write!(f, "blockdaemon"),
43            Self::Galaxy => write!(f, "galaxy"),
44        }
45    }
46}
47
48impl Default for StakingProvider {
49    fn default() -> StakingProvider {
50        Self::Kiln
51    }
52}