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 VOut {
    #[serde(rename = "scriptpubkey", skip_serializing_if = "Option::is_none")]
    pub scriptpubkey: Option<String>,
    #[serde(rename = "scriptpubkey_asm", skip_serializing_if = "Option::is_none")]
    pub scriptpubkey_asm: Option<String>,
    #[serde(rename = "scriptpubkey_type", skip_serializing_if = "Option::is_none")]
    pub scriptpubkey_type: Option<String>,
    #[serde(rename = "scriptpubkey_address", skip_serializing_if = "Option::is_none")]
    pub scriptpubkey_address: Option<String>,
    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
    pub value: Option<f32>,
}

impl VOut {
    pub fn new() -> VOut {
        VOut {
            scriptpubkey: None,
            scriptpubkey_asm: None,
            scriptpubkey_type: None,
            scriptpubkey_address: None,
            value: None,
        }
    }
}