fireblocks_sdk/models/
deployed_contracts_paginated_response.rs1use {
10 crate::models,
11 serde::{Deserialize, Serialize},
12};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct DeployedContractsPaginatedResponse {
16 #[serde(rename = "data")]
18 pub data: Vec<models::LeanDeployedContractResponseDto>,
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 DeployedContractsPaginatedResponse {
30 pub fn new(
31 data: Vec<models::LeanDeployedContractResponseDto>,
32 ) -> DeployedContractsPaginatedResponse {
33 DeployedContractsPaginatedResponse { data, next: None }
34 }
35}