cloud_hypervisor_client/models/
landlock_config.rs

1/*
2 * Cloud Hypervisor API
3 *
4 * Local HTTP based API for managing and inspecting a cloud-hypervisor virtual machine.
5 *
6 * The version of the OpenAPI document: 0.3.0
7 *
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 LandlockConfig {
16    #[serde(rename = "path")]
17    pub path: String,
18    #[serde(rename = "access")]
19    pub access: String,
20}
21
22impl LandlockConfig {
23    pub fn new(path: String, access: String) -> LandlockConfig {
24        LandlockConfig { path, access }
25    }
26}