esplora_btc_api/models/
inline_response_default_3.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 InlineResponseDefault3 {
16    #[serde(rename = "in_best_chain")]
17    pub in_best_chain: bool,
18    #[serde(rename = "height", skip_serializing_if = "Option::is_none")]
19    pub height: Option<f32>,
20    #[serde(rename = "next_best", skip_serializing_if = "Option::is_none")]
21    pub next_best: Option<String>,
22}
23
24impl InlineResponseDefault3 {
25    pub fn new(in_best_chain: bool) -> InlineResponseDefault3 {
26        InlineResponseDefault3 {
27            in_best_chain,
28            height: None,
29            next_best: None,
30        }
31    }
32}
33
34