pub struct VolumeInfo {
pub name: String,
pub path: String,
pub size_bytes: Option<u64>,
pub labels: HashMap<String, String>,
pub created_at: String,
pub in_use_by: Vec<String>,
}Expand description
Full volume response shape used by the list, inspect, and create endpoints.
Fields§
§name: StringVolume name (directory name).
path: StringHost filesystem path.
size_bytes: Option<u64>Approximate size in bytes (sum of regular files in the volume
directory). None when the directory could not be walked, or for
freshly created empty volumes where 0 would be equally
informative.
labels: HashMap<String, String>Labels from the sidecar. Empty when no sidecar is present.
created_at: StringRFC 3339 creation timestamp. For volumes without a sidecar this is the directory’s mtime (best-effort).
in_use_by: Vec<String>Container IDs currently mounting this volume. Empty when no
VolumeUsageSource is wired.
Trait Implementations§
Source§impl ComposeSchema for VolumeInfo
impl ComposeSchema for VolumeInfo
Source§impl Debug for VolumeInfo
impl Debug for VolumeInfo
Source§impl<'de> Deserialize<'de> for VolumeInfo
impl<'de> Deserialize<'de> for VolumeInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for VolumeInfo
impl Serialize for VolumeInfo
Auto Trait Implementations§
impl Freeze for VolumeInfo
impl RefUnwindSafe for VolumeInfo
impl Send for VolumeInfo
impl Sync for VolumeInfo
impl Unpin for VolumeInfo
impl UnsafeUnpin for VolumeInfo
impl UnwindSafe for VolumeInfo
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