fireblocks_sdk/models/swap_provider_protocols_enum.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/// SwapProviderProtocolsEnum : Protocol options supported by each provider.
15/// `UNISWAP` supports `UNISWAP_CLASSIC` and `UNISWAPX`. `WRAP_UNWRAP` supports
16/// `WRAP` and `UNWRAP.` Protocol options supported by each provider. `UNISWAP`
17/// supports `UNISWAP_CLASSIC` and `UNISWAPX`. `WRAP_UNWRAP` supports `WRAP` and
18/// `UNWRAP.`
19#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
20pub enum SwapProviderProtocolsEnum {
21 #[serde(rename = "UNISWAP_CLASSIC")]
22 UniswapClassic,
23 #[serde(rename = "UNISWAPX")]
24 Uniswapx,
25 #[serde(rename = "WRAP")]
26 Wrap,
27 #[serde(rename = "UNWRAP")]
28 Unwrap,
29}
30
31impl std::fmt::Display for SwapProviderProtocolsEnum {
32 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
33 match self {
34 Self::UniswapClassic => write!(f, "UNISWAP_CLASSIC"),
35 Self::Uniswapx => write!(f, "UNISWAPX"),
36 Self::Wrap => write!(f, "WRAP"),
37 Self::Unwrap => write!(f, "UNWRAP"),
38 }
39 }
40}
41
42impl Default for SwapProviderProtocolsEnum {
43 fn default() -> SwapProviderProtocolsEnum {
44 Self::UniswapClassic
45 }
46}