fireblocks_sdk/models/
resend_failed_notifications_job_status_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 ResendFailedNotificationsJobStatusResponse {
16    /// Bulk resend job ID
17    #[serde(rename = "jobId")]
18    pub job_id: String,
19    /// Bulk resend job status
20    #[serde(rename = "status")]
21    pub status: Status,
22    /// Number of notifications processed
23    #[serde(rename = "processed")]
24    pub processed: f64,
25    /// Total number of notifications to process
26    #[serde(rename = "total")]
27    pub total: f64,
28}
29
30impl ResendFailedNotificationsJobStatusResponse {
31    pub fn new(
32        job_id: String,
33        status: Status,
34        processed: f64,
35        total: f64,
36    ) -> ResendFailedNotificationsJobStatusResponse {
37        ResendFailedNotificationsJobStatusResponse {
38            job_id,
39            status,
40            processed,
41            total,
42        }
43    }
44}
45/// Bulk resend job status
46#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
47pub enum Status {
48    #[serde(rename = "QUEUED")]
49    Queued,
50    #[serde(rename = "IN_PROGRESS")]
51    InProgress,
52    #[serde(rename = "COMPLETED")]
53    Completed,
54    #[serde(rename = "FAILED")]
55    Failed,
56}
57
58impl Default for Status {
59    fn default() -> Status {
60        Self::Queued
61    }
62}