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
/*
* CryptoAPIs
*
* 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.
*
* The version of the OpenAPI document: 2021-03-20
* Contact: developers@cryptoapis.io
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListUnconfirmedTransactionsByAddressRi {
/// 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::ListUnconfirmedTransactionsByAddressRiRecipients>,
/// 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::ListUnconfirmedTransactionsByAddressRiSenders>,
/// 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 same as `transactionId` for account-based protocols like Ethereum, while it could be different in UTXO-based protocols like Bitcoin. E.g., in UTXO-based protocols `hash` is different from `transactionId` for SegWit transactions.
#[serde(rename = "transactionHash")]
pub transaction_hash: String,
/// Represents the unique identifier of a transaction, i.e. it could be `transactionId` in UTXO-based protocols like Bitcoin, and transaction `hash` in Ethereum blockchain.
#[serde(rename = "transactionId")]
pub transaction_id: String,
#[serde(rename = "blockchainSpecific")]
pub blockchain_specific: Box<crate::models::ListUnconfirmedTransactionsByAddressRibs>,
}
impl ListUnconfirmedTransactionsByAddressRi {
pub fn new(recipients: Vec<crate::models::ListUnconfirmedTransactionsByAddressRiRecipients>, senders: Vec<crate::models::ListUnconfirmedTransactionsByAddressRiSenders>, timestamp: i32, transaction_hash: String, transaction_id: String, blockchain_specific: crate::models::ListUnconfirmedTransactionsByAddressRibs) -> ListUnconfirmedTransactionsByAddressRi {
ListUnconfirmedTransactionsByAddressRi {
recipients,
senders,
timestamp,
transaction_hash,
transaction_id,
blockchain_specific: Box::new(blockchain_specific),
}
}
}