fireblocks_sdk/models/
smart_transfer_statistic.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/// SmartTransferStatistic : Smart transfers statistic
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SmartTransferStatistic {
17    #[serde(rename = "inflow")]
18    pub inflow: models::SmartTransferStatisticInflow,
19    #[serde(rename = "outflow")]
20    pub outflow: models::SmartTransferStatisticOutflow,
21    /// Number of total active tickets
22    #[serde(rename = "totalActiveTickets")]
23    pub total_active_tickets: i32,
24    /// Number of total inactive tickets (expired, canceled, completed)
25    #[serde(rename = "totalInactiveTickets")]
26    pub total_inactive_tickets: i32,
27}
28
29impl SmartTransferStatistic {
30    /// Smart transfers statistic
31    pub fn new(
32        inflow: models::SmartTransferStatisticInflow,
33        outflow: models::SmartTransferStatisticOutflow,
34        total_active_tickets: i32,
35        total_inactive_tickets: i32,
36    ) -> SmartTransferStatistic {
37        SmartTransferStatistic {
38            inflow,
39            outflow,
40            total_active_tickets,
41            total_inactive_tickets,
42        }
43    }
44}