cryptoapis/models/
get_wallet_transaction_details_by_transaction_idribsd2.rs

1/*
2 * CryptoAPIs
3 *
4 * Crypto APIs is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of their blockchain applications. Crypto APIs provides unified endpoints and data, raw data, automatic tokens and coins forwardings, callback functionalities, and much more.
5 *
6 * The version of the OpenAPI document: 2021-03-20
7 * Contact: developers@cryptoapis.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// GetWalletTransactionDetailsByTransactionIdribsd2 : Dash
12
13
14
15#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GetWalletTransactionDetailsByTransactionIdribsd2 {
17    /// Represents the time at which a particular transaction can be added to the blockchain.
18    #[serde(rename = "locktime")]
19    pub locktime: i64,
20    /// Represents the total size of this transaction.
21    #[serde(rename = "size")]
22    pub size: i32,
23    /// Represents the transaction version number.
24    #[serde(rename = "version")]
25    pub version: i32,
26    /// Object Array representation of transaction inputs
27    #[serde(rename = "vin")]
28    pub vin: Vec<crate::models::GetWalletTransactionDetailsByTransactionIdribsd2Vin>,
29    /// Object Array representation of transaction outputs
30    #[serde(rename = "vout")]
31    pub vout: Vec<crate::models::GetTransactionDetailsByTransactionIdribsd2Vout>,
32}
33
34impl GetWalletTransactionDetailsByTransactionIdribsd2 {
35    /// Dash
36    pub fn new(locktime: i64, size: i32, version: i32, vin: Vec<crate::models::GetWalletTransactionDetailsByTransactionIdribsd2Vin>, vout: Vec<crate::models::GetTransactionDetailsByTransactionIdribsd2Vout>) -> GetWalletTransactionDetailsByTransactionIdribsd2 {
37        GetWalletTransactionDetailsByTransactionIdribsd2 {
38            locktime,
39            size,
40            version,
41            vin,
42            vout,
43        }
44    }
45}
46
47