esplora_btc_api/models/inline_response_default.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 InlineResponseDefault {
16 /// A list of transaction hashes the current hash is paired with, deepest pairing first.
17 #[serde(rename = "merkle")]
18 pub merkle: Vec<String>,
19 /// The height of the block the transaction was confirmed in.
20 #[serde(rename = "block_height")]
21 pub block_height: f32,
22 /// The 0-based index of the position of the transaction in the ordered list of transactions in the block.
23 #[serde(rename = "pos")]
24 pub pos: f32,
25}
26
27impl InlineResponseDefault {
28 pub fn new(merkle: Vec<String>, block_height: f32, pos: f32) -> InlineResponseDefault {
29 InlineResponseDefault {
30 merkle,
31 block_height,
32 pos,
33 }
34 }
35}
36
37