podman_rest_client/v5/models/
linux_device.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// LinuxDevice represents the mknod information for a Linux special device file
4pub struct LinuxDevice {
5    #[serde(rename = "fileMode")]
6    pub file_mode: Option<u32>,
7    /// Gid of the device.
8    pub gid: Option<u32>,
9    /// Major is the device's major number.
10    pub major: Option<i64>,
11    /// Minor is the device's minor number.
12    pub minor: Option<i64>,
13    /// Path to the device.
14    pub path: Option<String>,
15    /// Device type, block, char, etc.
16    #[serde(rename = "type")]
17    pub r#type: Option<String>,
18    /// UID of the device.
19    pub uid: Option<u32>,
20}