esplora_btc_api/models/
inline_response_default_1.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 InlineResponseDefault1 {
16    #[serde(rename = "address")]
17    pub address: String,
18    #[serde(rename = "chain_stats")]
19    pub chain_stats: Box<crate::models::InlineResponseDefault1ChainStats>,
20    #[serde(rename = "mempool_stats")]
21    pub mempool_stats: Box<crate::models::InlineResponseDefault1ChainStats>,
22}
23
24impl InlineResponseDefault1 {
25    pub fn new(address: String, chain_stats: crate::models::InlineResponseDefault1ChainStats, mempool_stats: crate::models::InlineResponseDefault1ChainStats) -> InlineResponseDefault1 {
26        InlineResponseDefault1 {
27            address,
28            chain_stats: Box::new(chain_stats),
29            mempool_stats: Box::new(mempool_stats),
30        }
31    }
32}
33
34