Skip to main content

windmill_api/models/
apply_workspace_settings_document_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.841.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 ApplyWorkspaceSettingsDocument200Response {
16    #[serde(rename = "changes")]
17    pub changes: Vec<models::ApplyWorkspaceSettingsDocument200ResponseChangesInner>,
18    #[serde(rename = "applied")]
19    pub applied: bool,
20    #[serde(rename = "warnings", skip_serializing_if = "Option::is_none")]
21    pub warnings: Option<Vec<String>>,
22}
23
24impl ApplyWorkspaceSettingsDocument200Response {
25    pub fn new(changes: Vec<models::ApplyWorkspaceSettingsDocument200ResponseChangesInner>, applied: bool) -> ApplyWorkspaceSettingsDocument200Response {
26        ApplyWorkspaceSettingsDocument200Response {
27            changes,
28            applied,
29            warnings: None,
30        }
31    }
32}
33