Skip to main content

blockfrost_openapi/models/
tx_content_output_amount_inner.rs

1use crate::models;
2use serde::{Deserialize, Serialize};
3
4/// TxContentOutputAmountInner : The sum of all the UTXO per asset
5#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
6pub struct TxContentOutputAmountInner {
7    /// The unit of the value
8    #[serde(rename = "unit")]
9    pub unit: String,
10    /// The quantity of the unit
11    #[serde(rename = "quantity")]
12    pub quantity: String,
13}
14
15impl TxContentOutputAmountInner {
16    /// The sum of all the UTXO per asset
17    pub fn new(unit: String, quantity: String) -> TxContentOutputAmountInner {
18        TxContentOutputAmountInner {
19            unit,
20            quantity,
21        }
22    }
23}
24