blockfrost_openapi/models/
network_supply.rs1use crate::models;
2use serde::{Deserialize, Serialize};
3
4#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
5pub struct NetworkSupply {
6 #[serde(rename = "max")]
8 pub max: String,
9 #[serde(rename = "total")]
11 pub total: String,
12 #[serde(rename = "circulating")]
14 pub circulating: String,
15 #[serde(rename = "locked")]
17 pub locked: String,
18 #[serde(rename = "treasury")]
20 pub treasury: String,
21 #[serde(rename = "reserves")]
23 pub reserves: String,
24}
25
26impl NetworkSupply {
27 pub fn new(max: String, total: String, circulating: String, locked: String, treasury: String, reserves: String) -> NetworkSupply {
28 NetworkSupply {
29 max,
30 total,
31 circulating,
32 locked,
33 treasury,
34 reserves,
35 }
36 }
37}
38