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 InlineResponseDefault2 {
    #[serde(rename = "id")]
    pub id: String,
    #[serde(rename = "height")]
    pub height: f32,
    #[serde(rename = "version")]
    pub version: f32,
    #[serde(rename = "timestamp")]
    pub timestamp: f32,
    #[serde(rename = "bits")]
    pub bits: f32,
    #[serde(rename = "nonce")]
    pub nonce: f32,
    #[serde(rename = "merkle_root")]
    pub merkle_root: String,
    #[serde(rename = "tx_count")]
    pub tx_count: f32,
    #[serde(rename = "size")]
    pub size: f32,
    #[serde(rename = "weight")]
    pub weight: f32,
    #[serde(rename = "previousblockhash")]
    pub previousblockhash: String,
}

impl InlineResponseDefault2 {
    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 {
        InlineResponseDefault2 {
            id,
            height,
            version,
            timestamp,
            bits,
            nonce,
            merkle_root,
            tx_count,
            size,
            weight,
            previousblockhash,
        }
    }
}