fireblocks_sdk/models/parameter.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 Parameter {
16 /// The name of the parameter as it appears in the ABI
17 #[serde(rename = "name")]
18 pub name: String,
19 /// A description of the parameter, fetched from the devdoc of this contract
20 #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
21 pub description: Option<String>,
22 /// The internal type of the parameter as it appears in the ABI
23 #[serde(rename = "internalType", skip_serializing_if = "Option::is_none")]
24 pub internal_type: Option<String>,
25 /// The type of the parameter as it appears in the ABI
26 #[serde(rename = "type")]
27 pub r#type: String,
28 /// In case it’s a struct, it will hold the struct data
29 #[serde(rename = "components", skip_serializing_if = "Option::is_none")]
30 pub components: Option<Vec<String>>,
31}
32
33impl Parameter {
34 pub fn new(name: String, r#type: String) -> Parameter {
35 Parameter {
36 name,
37 description: None,
38 internal_type: None,
39 r#type,
40 components: None,
41 }
42 }
43}