fireblocks_sdk/models/
collection_metadata_dto.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 CollectionMetadataDto {
16    /// Fireblocks collection id
17    #[serde(rename = "fbCollectionId")]
18    pub fb_collection_id: String,
19    /// Collection name
20    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21    pub name: Option<String>,
22    /// Collection symbol
23    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
24    pub symbol: Option<String>,
25    /// Collection contract standard
26    #[serde(rename = "standard", skip_serializing_if = "Option::is_none")]
27    pub standard: Option<String>,
28    /// Collection's blockchain
29    #[serde(rename = "blockchainDescriptor")]
30    pub blockchain_descriptor: String,
31    /// Collection contract address
32    #[serde(rename = "contractAddress", skip_serializing_if = "Option::is_none")]
33    pub contract_address: Option<String>,
34}
35
36impl CollectionMetadataDto {
37    pub fn new(fb_collection_id: String, blockchain_descriptor: String) -> CollectionMetadataDto {
38        CollectionMetadataDto {
39            fb_collection_id,
40            name: None,
41            symbol: None,
42            standard: None,
43            blockchain_descriptor,
44            contract_address: None,
45        }
46    }
47}