podman_client/models/podman/common/blkio_weight_device.rs
1use core::fmt;
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Deserialize, Serialize)]
6#[serde(rename_all = "PascalCase")]
7pub struct BlkioWeightDevice {
8 pub path: String,
9 pub weight: u16,
10}
11
12impl fmt::Debug for BlkioWeightDevice {
13 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
14 let json = serde_json::to_string_pretty(self).map_err(|_| fmt::Error)?;
15 f.write_str(&json)
16 }
17}