podman_rest_client/v5/models/linux_device_cgroup.rs
1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// LinuxDeviceCgroup represents a device rule for the devices specified to
4/// the device controller
5pub struct LinuxDeviceCgroup {
6 /// Cgroup access permissions format, rwm.
7 pub access: Option<String>,
8 /// Allow or deny
9 pub allow: Option<bool>,
10 /// Major is the device's major number.
11 pub major: Option<i64>,
12 /// Minor is the device's minor number.
13 pub minor: Option<i64>,
14 /// Device type, block, char, etc.
15 #[serde(rename = "type")]
16 pub r#type: Option<String>,
17}