podman_rest_client/v5/models/linux_throttle_device.rs
1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// LinuxThrottleDevice struct holds a `major:minor rate_per_second` pair
4pub struct LinuxThrottleDevice {
5 /// Major is the device's major number.
6 pub major: Option<i64>,
7 /// Minor is the device's minor number.
8 pub minor: Option<i64>,
9 /// Rate is the IO rate limit per cgroup per device
10 pub rate: Option<u64>,
11}