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
47
48
49
50
51
52
53
54
55
/*
 * 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 ListWalletTransactionsRi {
    /// Defines the direction of the transaction, e.g. incoming.
    #[serde(rename = "direction")]
    pub direction: String,
    #[serde(rename = "fee")]
    pub fee: Box<crate::models::ListWalletTransactionsRiFee>,
    /// Represents a list of recipient addresses with the respective amounts. In account-based protocols like Ethereum there is only one address in this list.
    #[serde(rename = "recipients")]
    pub recipients: Vec<crate::models::ListWalletTransactionsRiRecipients>,
    /// Represents a list of sender addresses with the respective amounts. In account-based protocols like Ethereum there is only one address in this list.
    #[serde(rename = "senders")]
    pub senders: Vec<crate::models::ListWalletTransactionsRiSenders>,
    /// Defines the status of the transaction, if it is confirmed or unconfirmed.
    #[serde(rename = "status")]
    pub status: String,
    /// Defines the exact date/time in Unix Timestamp when this transaction was mined, confirmed or first seen in Mempool, if it is unconfirmed.
    #[serde(rename = "timestamp")]
    pub timestamp: i32,
    /// Represents the unique TD of the transaction.
    #[serde(rename = "transactionId")]
    pub transaction_id: String,
    #[serde(rename = "value")]
    pub value: Box<crate::models::ListWalletTransactionsRiValue>,
}

impl ListWalletTransactionsRi {
    pub fn new(direction: String, fee: crate::models::ListWalletTransactionsRiFee, recipients: Vec<crate::models::ListWalletTransactionsRiRecipients>, senders: Vec<crate::models::ListWalletTransactionsRiSenders>, status: String, timestamp: i32, transaction_id: String, value: crate::models::ListWalletTransactionsRiValue) -> ListWalletTransactionsRi {
        ListWalletTransactionsRi {
            direction,
            fee: Box::new(fee),
            recipients,
            senders,
            status,
            timestamp,
            transaction_id,
            value: Box::new(value),
        }
    }
}