fireblocks-sdk 2026.3.27

Rust implementation of the Fireblocks SDK
Documentation
// Fireblocks API
//
// 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)
//
// The version of the OpenAPI document: 1.8.0
// Contact: developers@fireblocks.com
// Generated by: https://openapi-generator.tech

use {
    crate::models,
    serde::{Deserialize, Serialize},
};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UnspentInputsResponse {
    #[serde(rename = "input", skip_serializing_if = "Option::is_none")]
    pub input: Option<models::UnspentInput>,
    /// The blockchain address associated with the UTXO
    #[serde(rename = "address", skip_serializing_if = "Option::is_none")]
    pub address: Option<String>,
    /// The quantity of the asset held in the UTXO, expressed in base asset
    /// units
    #[serde(rename = "amount", skip_serializing_if = "Option::is_none")]
    pub amount: Option<String>,
    /// The count of confirmations on the blockchain for this UTXO
    #[serde(rename = "confirmations", skip_serializing_if = "Option::is_none")]
    pub confirmations: Option<f64>,
    /// UTXO Status
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<Status>,
}

impl UnspentInputsResponse {
    pub fn new() -> UnspentInputsResponse {
        UnspentInputsResponse {
            input: None,
            address: None,
            amount: None,
            confirmations: None,
            status: None,
        }
    }
}
/// UTXO Status
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Status {
    #[serde(rename = "AVAILABLE")]
    Available,
    #[serde(rename = "PENDING")]
    Pending,
    #[serde(rename = "FROZEN")]
    Frozen,
}

impl Default for Status {
    fn default() -> Status {
        Self::Available
    }
}