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
77
78
79
80
81
82
83
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct AddressTokensTransactionConfirmedEachConfirmationDataItem {
    
    #[serde(rename = "blockchain")]
    pub blockchain: String,
    
    #[serde(rename = "network")]
    pub network: String,
    
    #[serde(rename = "address")]
    pub address: String,
    #[serde(rename = "minedInBlock")]
    pub mined_in_block: Box<crate::models::AddressTokensTransactionConfirmedEachConfirmationDataItemMinedInBlock>,
    
    #[serde(rename = "transactionId")]
    pub transaction_id: String,
    
    #[serde(rename = "currentConfirmations")]
    pub current_confirmations: i32,
    
    #[serde(rename = "targetConfirmations")]
    pub target_confirmations: i32,
    
    #[serde(rename = "tokenType")]
    pub token_type: TokenType,
    #[serde(rename = "token")]
    pub token: Box<crate::models::AddressTokensTransactionConfirmedEachConfirmationToken>,
    
    #[serde(rename = "direction")]
    pub direction: Direction,
}
impl AddressTokensTransactionConfirmedEachConfirmationDataItem {
    
    pub fn new(blockchain: String, network: String, address: String, mined_in_block: crate::models::AddressTokensTransactionConfirmedEachConfirmationDataItemMinedInBlock, transaction_id: String, current_confirmations: i32, target_confirmations: i32, token_type: TokenType, token: crate::models::AddressTokensTransactionConfirmedEachConfirmationToken, direction: Direction) -> AddressTokensTransactionConfirmedEachConfirmationDataItem {
        AddressTokensTransactionConfirmedEachConfirmationDataItem {
            blockchain,
            network,
            address,
            mined_in_block: Box::new(mined_in_block),
            transaction_id,
            current_confirmations,
            target_confirmations,
            token_type,
            token: Box::new(token),
            direction,
        }
    }
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum TokenType {
    #[serde(rename = "ethereumERC20Token")]
    EthereumERC20Token,
    #[serde(rename = "ethereumERC721Token")]
    EthereumERC721Token,
    #[serde(rename = "omniLayerToken")]
    OmniLayerToken,
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Direction {
    #[serde(rename = "incoming")]
    Incoming,
    #[serde(rename = "outgoing")]
    Outgoing,
}