fireblocks_sdk/models/
resend_failed_notifications_job_status_response.rs1use {
10 crate::models,
11 serde::{Deserialize, Serialize},
12};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ResendFailedNotificationsJobStatusResponse {
16 #[serde(rename = "jobId")]
18 pub job_id: String,
19 #[serde(rename = "status")]
21 pub status: Status,
22 #[serde(rename = "processed")]
24 pub processed: f64,
25 #[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#[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}