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 Utxo {
    #[serde(rename = "txid")]
    pub txid: String,
    #[serde(rename = "vout")]
    pub vout: i64,
    #[serde(rename = "value")]
    pub value: i64,
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<Box<crate::models::Status>>,
}

impl Utxo {
    pub fn new(txid: String, vout: i64, value: i64) -> Utxo {
        Utxo {
            txid,
            vout,
            value,
            status: None,
        }
    }
}