windmill_api/models/
check_s3_folder_exists_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.575.3
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 CheckS3FolderExists200Response {
16    /// Whether the path exists
17    #[serde(rename = "exists")]
18    pub exists: bool,
19    /// Whether the path is a folder (true) or file (false)
20    #[serde(rename = "is_folder")]
21    pub is_folder: bool,
22}
23
24impl CheckS3FolderExists200Response {
25    pub fn new(exists: bool, is_folder: bool) -> CheckS3FolderExists200Response {
26        CheckS3FolderExists200Response {
27            exists,
28            is_folder,
29        }
30    }
31}
32