fireblocks_sdk/models/
blockchain_response.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, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct BlockchainResponse {
16    /// The ID of the blockchain
17    #[serde(rename = "id")]
18    pub id: String,
19    /// The old blockchain ID representation of the blockchain
20    #[serde(rename = "legacyId")]
21    pub legacy_id: String,
22    /// The name of the blockchain
23    #[serde(rename = "displayName")]
24    pub display_name: String,
25    /// Native asset ID of this blockchain
26    #[serde(rename = "nativeAssetId")]
27    pub native_asset_id: String,
28    #[serde(rename = "onchain")]
29    pub onchain: models::BlockchainOnchain,
30    #[serde(rename = "metadata")]
31    pub metadata: models::BlockchainMetadata,
32}
33
34impl BlockchainResponse {
35    pub fn new(
36        id: String,
37        legacy_id: String,
38        display_name: String,
39        native_asset_id: String,
40        onchain: models::BlockchainOnchain,
41        metadata: models::BlockchainMetadata,
42    ) -> BlockchainResponse {
43        BlockchainResponse {
44            id,
45            legacy_id,
46            display_name,
47            native_asset_id,
48            onchain,
49            metadata,
50        }
51    }
52}