pub struct UsageData {
pub ref_count: i64,
pub size: i64,
}
Expand description
Usage details about the volume. This information is used by the
GET /system/df
endpoint, and omitted in other endpoints.
Fields§
§ref_count: i64
The number of containers referencing this volume. This field
is set to -1
if the reference-count is not available.
size: 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”)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UsageData
impl<'de> Deserialize<'de> for UsageData
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UsageData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UsageData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UsageData
impl Serialize for UsageData
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for UsageData
Auto Trait Implementations§
impl Freeze for UsageData
impl RefUnwindSafe for UsageData
impl Send for UsageData
impl Sync for UsageData
impl Unpin for UsageData
impl UnwindSafe for UsageData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more