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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
 * 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 ListUnconfirmedOmniTransactionsByPropertyIdResponseItem {
    /// Defines the amount of the sent tokens.
    #[serde(rename = "amount")]
    pub amount: String,
    /// Defines whether the attribute can be divisible or not, as boolean. E.g., if it is \"true\", the attribute is divisible.
    #[serde(rename = "divisible")]
    pub divisible: bool,
    /// Defines whether the transaction has been mined or not, as boolean. E.g. if set to \"true\", it means the transaction is mined.
    #[serde(rename = "mined")]
    pub mined: bool,
    /// Represents the identifier of the tokens to send.
    #[serde(rename = "propertyId")]
    pub property_id: i32,
    /// Represents an object of addresses that receive the transactions.
    #[serde(rename = "recipients")]
    pub recipients: Vec<crate::models::ListOmniTransactionsByAddressResponseItemRecipients>,
    /// Represents an object of addresses that provide the funds.
    #[serde(rename = "senders")]
    pub senders: Vec<crate::models::GetUnconfirmedOmniTransactionByTransactionIdTxidResponseItemSenders>,
    /// Defines whether the transaction has been sent or not, as boolean. E.g. if set to \"true\", it means the transaction is sent.
    #[serde(rename = "sent")]
    pub sent: bool,
    /// 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 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,
    /// Defines the type of the transaction as a string.
    #[serde(rename = "type")]
    pub _type: String,
    /// Defines the type of the transaction as a number.
    #[serde(rename = "typeIint")]
    pub type_iint: i32,
    /// Defines the specific version.
    #[serde(rename = "version")]
    pub version: i32,
    #[serde(rename = "fee")]
    pub fee: Box<crate::models::ListUnconfirmedOmniTransactionsByAddressResponseItemFee>,
}

impl ListUnconfirmedOmniTransactionsByPropertyIdResponseItem {
    pub fn new(amount: String, divisible: bool, mined: bool, property_id: i32, recipients: Vec<crate::models::ListOmniTransactionsByAddressResponseItemRecipients>, senders: Vec<crate::models::GetUnconfirmedOmniTransactionByTransactionIdTxidResponseItemSenders>, sent: bool, timestamp: i32, transaction_id: String, _type: String, type_iint: i32, version: i32, fee: crate::models::ListUnconfirmedOmniTransactionsByAddressResponseItemFee) -> ListUnconfirmedOmniTransactionsByPropertyIdResponseItem {
        ListUnconfirmedOmniTransactionsByPropertyIdResponseItem {
            amount,
            divisible,
            mined,
            property_id,
            recipients,
            senders,
            sent,
            timestamp,
            transaction_id,
            _type,
            type_iint,
            version,
            fee: Box::new(fee),
        }
    }
}