Skip to main content

hanzo_client/models/
version_view.rs

1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
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 VersionView {
16    /// CreatedAt is when this revision was appended, RFC 3339 UTC.
17    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
18    pub created_at: Option<String>,
19    /// Type is the kind this revision was written with, which may differ from the current one.
20    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
21    pub r#type: Option<String>,
22    /// Version is this revision's number, 1 for the first. Numbers are dense and never reused: deleting the prompt drops the whole history with it.
23    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
24    pub version: Option<i32>,
25}
26
27impl VersionView {
28    pub fn new() -> VersionView {
29        VersionView {
30            created_at: None,
31            r#type: None,
32            version: None,
33        }
34    }
35}
36