fireblocks_sdk/models/
unspent_inputs_response.rs

1// Fireblocks API
2//
3// Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain.  - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
4//
5// The version of the OpenAPI document: 1.8.0
6// Contact: developers@fireblocks.com
7// Generated by: https://openapi-generator.tech
8
9use {
10    crate::models,
11    serde::{Deserialize, Serialize},
12};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct UnspentInputsResponse {
16    #[serde(rename = "input", skip_serializing_if = "Option::is_none")]
17    pub input: Option<models::UnspentInput>,
18    /// The blockchain address associated with the UTXO
19    #[serde(rename = "address", skip_serializing_if = "Option::is_none")]
20    pub address: Option<String>,
21    /// The quantity of the asset held in the UTXO, expressed in base asset
22    /// units
23    #[serde(rename = "amount", skip_serializing_if = "Option::is_none")]
24    pub amount: Option<String>,
25    /// The count of confirmations on the blockchain for this UTXO
26    #[serde(rename = "confirmations", skip_serializing_if = "Option::is_none")]
27    pub confirmations: Option<f64>,
28    /// UTXO Status
29    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
30    pub status: Option<Status>,
31}
32
33impl UnspentInputsResponse {
34    pub fn new() -> UnspentInputsResponse {
35        UnspentInputsResponse {
36            input: None,
37            address: None,
38            amount: None,
39            confirmations: None,
40            status: None,
41        }
42    }
43}
44/// UTXO Status
45#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
46pub enum Status {
47    #[serde(rename = "AVAILABLE")]
48    Available,
49    #[serde(rename = "PENDING")]
50    Pending,
51    #[serde(rename = "FROZEN")]
52    Frozen,
53}
54
55impl Default for Status {
56    fn default() -> Status {
57        Self::Available
58    }
59}