esplora-btc-api 1.3.0

Esplora Bitcoin OpenAPI Client
Documentation
/*
 * Blockstream Esplora HTTP API
 *
 * JSON over RESTful HTTP. Amounts are always represented in satoshis.
 *
 * The version of the OpenAPI document: 1.0.1
 * 
 * Generated by: https://openapi-generator.tech
 */




#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct InlineResponseDefault3 {
    #[serde(rename = "in_best_chain")]
    pub in_best_chain: bool,
    #[serde(rename = "height", skip_serializing_if = "Option::is_none")]
    pub height: Option<f32>,
    #[serde(rename = "next_best", skip_serializing_if = "Option::is_none")]
    pub next_best: Option<String>,
}

impl InlineResponseDefault3 {
    pub fn new(in_best_chain: bool) -> InlineResponseDefault3 {
        InlineResponseDefault3 {
            in_best_chain,
            height: None,
            next_best: None,
        }
    }
}