podman_rest_client/v5/models/
usage_data.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// UsageData Usage details about the volume. This information is used by the
4/// `GET /system/df` endpoint, and omitted in other endpoints.
5pub struct UsageData {
6    /// The number of containers referencing this volume. This field
7    /// is set to `-1` if the reference-count is not available.
8    #[serde(rename = "RefCount")]
9    pub ref_count: i64,
10    /// Amount of disk space used by the volume (in bytes). This information
11    /// is only available for volumes created with the `"local"` volume
12    /// driver. For volumes created with other volume drivers, this field
13    /// is set to `-1` ("not available")
14    #[serde(rename = "Size")]
15    pub size: i64,
16}