tembo_api_client/models/
history_entry.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 HistoryEntry {
16    #[serde(rename = "instance")]
17    pub instance: Box<models::InstanceState>,
18    /// The timestamp of the entry
19    #[serde(rename = "timestamp")]
20    pub timestamp: String,
21}
22
23impl HistoryEntry {
24    pub fn new(instance: models::InstanceState, timestamp: String) -> HistoryEntry {
25        HistoryEntry {
26            instance: Box::new(instance),
27            timestamp,
28        }
29    }
30}