Skip to main content

windmill_api/models/
ai_session_backup_listing.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.817.0
7 * Contact: contact@windmill.dev
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 AiSessionBackupListing {
16    #[serde(rename = "id")]
17    pub id: String,
18    #[serde(rename = "updated_at")]
19    pub updated_at: String,
20    /// the session's move count when this copy was pushed; of a session two workspaces list, the copy with the higher one is the later
21    #[serde(rename = "epoch")]
22    pub epoch: i32,
23}
24
25impl AiSessionBackupListing {
26    pub fn new(id: String, updated_at: String, epoch: i32) -> AiSessionBackupListing {
27        AiSessionBackupListing {
28            id,
29            updated_at,
30            epoch,
31        }
32    }
33}
34