dtz_core/models/
volume_mount.rs

1/*
2 * DTZ Core Api
3 *
4 * a generated client for the DTZ Core API
5 *
6 * Contact: jens@apimeister.com
7 * Generated by: https://openapi-generator.tech
8 */
9
10#[allow(unused_imports)]
11use crate::models;
12#[allow(unused_imports)]
13use serde::{Deserialize, Serialize};
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct VolumeMount {
17    /// name of the volume
18    #[serde(rename = "source")]
19    pub source: dtz_identifier::VolumeId,
20    /// target path inside the container
21    #[serde(rename = "target")]
22    pub target: String,
23}
24
25impl VolumeMount {
26    pub fn new(source: dtz_identifier::VolumeId, target: String) -> VolumeMount {
27        VolumeMount {
28            source,
29            target,
30        }
31    }
32}
33