windmill_api/models/get_git_sync_deploy_mode_200_response.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.765.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 GetGitSyncDeployMode200Response {
16 /// At least one git-sync repository is configured.
17 #[serde(rename = "configured")]
18 pub configured: bool,
19 /// 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`).
20 #[serde(rename = "deploy_on_push")]
21 pub deploy_on_push: bool,
22}
23
24impl GetGitSyncDeployMode200Response {
25 pub fn new(configured: bool, deploy_on_push: bool) -> GetGitSyncDeployMode200Response {
26 GetGitSyncDeployMode200Response {
27 configured,
28 deploy_on_push,
29 }
30 }
31}
32