Skip to main content

windmill_api/models/
app_deployed.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/// AppDeployed : What a deploy of an existing app answers with. `version` is the one this call wrote, which is what an editor pins as the fork base of the draft it starts next: reading the head back afterwards cannot tell it from a deploy that landed beside it. A metadata-only update writes none and reports the head it kept.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AppDeployed {
17    /// Where the app now lives, which differs from the request path on a rename.
18    #[serde(rename = "path")]
19    pub path: String,
20    #[serde(rename = "version")]
21    pub version: i64,
22}
23
24impl AppDeployed {
25    /// What a deploy of an existing app answers with. `version` is the one this call wrote, which is what an editor pins as the fork base of the draft it starts next: reading the head back afterwards cannot tell it from a deploy that landed beside it. A metadata-only update writes none and reports the head it kept.
26    pub fn new(path: String, version: i64) -> AppDeployed {
27        AppDeployed {
28            path,
29            version,
30        }
31    }
32}
33