fireblocks_sdk/models/
network_id_routing_policy_value.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#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15#[serde(untagged)]
16pub enum NetworkIdRoutingPolicyValue {
17    CustomRoutingDest(models::CustomRoutingDest),
18    NoneNetworkRoutingDest(models::NoneNetworkRoutingDest),
19}
20
21impl Default for NetworkIdRoutingPolicyValue {
22    fn default() -> Self {
23        Self::CustomRoutingDest(Default::default())
24    }
25}
26/// No network routing logic.
27#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
28pub enum Scheme {
29    #[serde(rename = "NONE")]
30    None,
31}
32
33impl Default for Scheme {
34    fn default() -> Scheme {
35        Self::None
36    }
37}
38/// The account the funds are being sent to.
39#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
40pub enum DstType {
41    #[serde(rename = "FIAT_ACCOUNT")]
42    FiatAccount,
43    #[serde(rename = "VAULT")]
44    Vault,
45    #[serde(rename = "EXCHANGE")]
46    Exchange,
47}
48
49impl Default for DstType {
50    fn default() -> DstType {
51        Self::FiatAccount
52    }
53}