podman_rest_client/v5/models/linux_weight_device.rs
1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// LinuxWeightDevice struct holds a `major:minor weight` pair for weightDevice
4pub struct LinuxWeightDevice {
5 /// LeafWeight is the bandwidth rate for the device while competing with the cgroup's child cgroups, CFQ scheduler only
6 #[serde(rename = "leafWeight")]
7 pub leaf_weight: Option<u16>,
8 /// Major is the device's major number.
9 pub major: Option<i64>,
10 /// Minor is the device's minor number.
11 pub minor: Option<i64>,
12 /// Weight is the bandwidth rate for the device.
13 pub weight: Option<u16>,
14}