tembo_api_client/models/
history_page.rs

1/*
2 * Tembo Cloud
3 *
4 * Platform API for Tembo Cloud             </br>             </br>             To find a Tembo Data API, please find it here:             </br>             </br>             [AWS US East 1](https://api.data-1.use1.tembo.io/swagger-ui/)
5 *
6 * The version of the OpenAPI document: v1.0.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 HistoryPage {
16    /// List of historical results
17    #[serde(rename = "history")]
18    pub history: Vec<models::HistoryEntry>,
19    #[serde(rename = "pagination")]
20    pub pagination: Box<models::PaginationInfo>,
21}
22
23impl HistoryPage {
24    pub fn new(
25        history: Vec<models::HistoryEntry>,
26        pagination: models::PaginationInfo,
27    ) -> HistoryPage {
28        HistoryPage {
29            history,
30            pagination: Box::new(pagination),
31        }
32    }
33}