esplora_btc_api/models/
inline_response_default_2.rs

1/*
2 * Blockstream Esplora HTTP API
3 *
4 * JSON over RESTful HTTP. Amounts are always represented in satoshis.
5 *
6 * The version of the OpenAPI document: 1.0.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct InlineResponseDefault2 {
16    #[serde(rename = "id")]
17    pub id: String,
18    #[serde(rename = "height")]
19    pub height: f32,
20    #[serde(rename = "version")]
21    pub version: f32,
22    #[serde(rename = "timestamp")]
23    pub timestamp: f32,
24    #[serde(rename = "bits")]
25    pub bits: f32,
26    #[serde(rename = "nonce")]
27    pub nonce: f32,
28    #[serde(rename = "merkle_root")]
29    pub merkle_root: String,
30    #[serde(rename = "tx_count")]
31    pub tx_count: f32,
32    #[serde(rename = "size")]
33    pub size: f32,
34    #[serde(rename = "weight")]
35    pub weight: f32,
36    #[serde(rename = "previousblockhash")]
37    pub previousblockhash: String,
38}
39
40impl InlineResponseDefault2 {
41    pub fn new(id: String, height: f32, version: f32, timestamp: f32, bits: f32, nonce: f32, merkle_root: String, tx_count: f32, size: f32, weight: f32, previousblockhash: String) -> InlineResponseDefault2 {
42        InlineResponseDefault2 {
43            id,
44            height,
45            version,
46            timestamp,
47            bits,
48            nonce,
49            merkle_root,
50            tx_count,
51            size,
52            weight,
53            previousblockhash,
54        }
55    }
56}
57
58