windmill_api/models/storage_folder.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.779.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 StorageFolder {
16 /// Full key prefix of the folder, ending with '/'
17 #[serde(rename = "prefix")]
18 pub prefix: String,
19 /// Last path segment, without the trailing '/'
20 #[serde(rename = "name")]
21 pub name: String,
22}
23
24impl StorageFolder {
25 pub fn new(prefix: String, name: String) -> StorageFolder {
26 StorageFolder {
27 prefix,
28 name,
29 }
30 }
31}
32