1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * CryptoAPIs
 *
 * Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of their blockchain applications. Crypto APIs 2.0 provides unified endpoints and data, raw data, automatic tokens and coins forwardings, callback functionalities, and much more.
 *
 * The version of the OpenAPI document: 2.0.0
 * Contact: developers@cryptoapis.io
 * Generated by: https://openapi-generator.tech
 */




#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct TransactionRequestBroadcastedDataItem {
    #[serde(rename = "blockchain")]
    pub blockchain: String,
    #[serde(rename = "network")]
    pub network: String,
    #[serde(rename = "requiredApproves")]
    pub required_approves: i32,
    #[serde(rename = "requiredRejects")]
    pub required_rejects: i32,
    #[serde(rename = "currentApproves")]
    pub current_approves: i32,
    #[serde(rename = "currentRejects")]
    pub current_rejects: i32,
    #[serde(rename = "transactionId")]
    pub transaction_id: String,
}

impl TransactionRequestBroadcastedDataItem {
    pub fn new(blockchain: String, network: String, required_approves: i32, required_rejects: i32, current_approves: i32, current_rejects: i32, transaction_id: String) -> TransactionRequestBroadcastedDataItem {
        TransactionRequestBroadcastedDataItem {
            blockchain,
            network,
            required_approves,
            required_rejects,
            current_approves,
            current_rejects,
            transaction_id,
        }
    }
}