windmill-api 1.764.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.764.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetGitSyncDeployMode200Response {
    /// At least one git-sync repository is configured.
    #[serde(rename = "configured")]
    pub configured: bool,
    /// True means a `git push` is confirmed to deploy via auto-pull: exactly one licensed, deliverable repository tracks the branch. False is *not confirmed* rather than a definite no — it also covers unlicensed, ambiguous (several repos track it), and conservative false-negatives; determine the deploy path another way (CI `git push`, or `wmill sync push`).
    #[serde(rename = "deploy_on_push")]
    pub deploy_on_push: bool,
}

impl GetGitSyncDeployMode200Response {
    pub fn new(configured: bool, deploy_on_push: bool) -> GetGitSyncDeployMode200Response {
        GetGitSyncDeployMode200Response {
            configured,
            deploy_on_push,
        }
    }
}