fireblocks_sdk/models/
notification_attempts_paginated_response.rs1use {
10 crate::models,
11 serde::{Deserialize, Serialize},
12};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct NotificationAttemptsPaginatedResponse {
16 #[serde(rename = "data")]
18 pub data: Vec<models::NotificationAttempt>,
19 #[serde(
21 rename = "next",
22 default,
23 with = "::serde_with::rust::double_option",
24 skip_serializing_if = "Option::is_none"
25 )]
26 pub next: Option<Option<String>>,
27}
28
29impl NotificationAttemptsPaginatedResponse {
30 pub fn new(data: Vec<models::NotificationAttempt>) -> NotificationAttemptsPaginatedResponse {
31 NotificationAttemptsPaginatedResponse { data, next: None }
32 }
33}