1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
/* * ORY Hydra * * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. * * The version of the OpenAPI document: v1.10.3 * * Generated by: https://openapi-generator.tech */ /// VolumeUsageData : VolumeUsageData Usage details about the volume. This information is used by the `GET /system/df` endpoint, and omitted in other endpoints. #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VolumeUsageData { /// The number of containers referencing this volume. This field is set to `-1` if the reference-count is not available. #[serde(rename = "RefCount")] pub ref_count: i64, /// Amount of disk space used by the volume (in bytes). This information is only available for volumes created with the `\"local\"` volume driver. For volumes created with other volume drivers, this field is set to `-1` (\"not available\") #[serde(rename = "Size")] pub size: i64, } impl VolumeUsageData { /// VolumeUsageData Usage details about the volume. This information is used by the `GET /system/df` endpoint, and omitted in other endpoints. pub fn new(ref_count: i64, size: i64) -> VolumeUsageData { VolumeUsageData { ref_count, size, } } }