fireblocks_sdk/models/
collection_deploy_request_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 CollectionDeployRequestDto {
16    /// The blockchain base assetId
17    #[serde(rename = "baseAssetId")]
18    pub base_asset_id: String,
19    /// The id of the vault account that initiated the request to issue the
20    /// token
21    #[serde(rename = "vaultAccountId")]
22    pub vault_account_id: String,
23    #[serde(rename = "type")]
24    pub r#type: models::CollectionType,
25    /// A string that represents the name of the collection
26    #[serde(rename = "name")]
27    pub name: String,
28    /// A string that represents the symbol of the collection
29    #[serde(rename = "symbol")]
30    pub symbol: String,
31    /// The EVM address of the user that will be set as the admin user of the
32    /// collection
33    #[serde(rename = "adminAddress")]
34    pub admin_address: String,
35    /// A string to display as a name of the collection
36    #[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
37    pub display_name: Option<String>,
38}
39
40impl CollectionDeployRequestDto {
41    pub fn new(
42        base_asset_id: String,
43        vault_account_id: String,
44        r#type: models::CollectionType,
45        name: String,
46        symbol: String,
47        admin_address: String,
48    ) -> CollectionDeployRequestDto {
49        CollectionDeployRequestDto {
50            base_asset_id,
51            vault_account_id,
52            r#type,
53            name,
54            symbol,
55            admin_address,
56            display_name: None,
57        }
58    }
59}