Skip to main content

geoengine_api_client/models/
volume.rs

1/*
2 * Geo Engine API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * Contact: dev@geoengine.de
7 * Generated by: https://openapi-generator.tech
8 */
9
10use crate::models;
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct Volume {
15    #[serde(rename = "name")]
16    pub name: String,
17    #[serde(rename = "path", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
18    pub path: Option<Option<String>>,
19}
20
21impl Volume {
22    pub fn new(name: String) -> Volume {
23        Volume {
24            name,
25            path: None,
26        }
27    }
28}
29