windmill-api 1.816.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.816.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// 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.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AppDeployed {
    /// Where the app now lives, which differs from the request path on a rename.
    #[serde(rename = "path")]
    pub path: String,
    #[serde(rename = "version")]
    pub version: i64,
}

impl 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.
    pub fn new(path: String, version: i64) -> AppDeployed {
        AppDeployed {
            path,
            version,
        }
    }
}