Skip to main content

windmill_api/models/
offboard_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.894.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 OffboardResponse {
16    /// List of path conflicts that block the offboarding. Empty on success.
17    #[serde(rename = "conflicts", skip_serializing_if = "Option::is_none")]
18    pub conflicts: Option<Vec<String>>,
19    /// The same conflicts as `conflicts`, structured. Empty on success.
20    #[serde(rename = "conflict_items", skip_serializing_if = "Option::is_none")]
21    pub conflict_items: Option<Vec<models::OffboardPathConflict>>,
22    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
23    pub summary: Option<Box<models::OffboardSummary>>,
24}
25
26impl OffboardResponse {
27    pub fn new() -> OffboardResponse {
28        OffboardResponse {
29            conflicts: None,
30            conflict_items: None,
31            summary: None,
32        }
33    }
34}
35