thehive_client/models/
query_paginate.rs

1/*
2 * TheHive API
3 *
4 * Comprehensive OpenAPI specification inferred from the TheHive4py client library. This API allows interaction with TheHive platform for managing alerts, cases, observables, tasks, users, and other entities. 
5 *
6 * The version of the OpenAPI document: 2.1.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct QueryPaginate {
16    #[serde(rename = "from", skip_serializing_if = "Option::is_none")]
17    pub from: Option<i32>,
18    #[serde(rename = "to", skip_serializing_if = "Option::is_none")]
19    pub to: Option<i32>,
20    #[serde(rename = "extraData", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21    pub extra_data: Option<Option<Vec<serde_json::Value>>>,
22}
23
24impl QueryPaginate {
25    pub fn new() -> QueryPaginate {
26        QueryPaginate {
27            from: None,
28            to: None,
29            extra_data: None,
30        }
31    }
32}
33