pub struct Volume {
pub id: u64,
pub name: String,
pub capacity_bytes: u64,
pub access_type: AccessType,
pub fs_type: String,
pub node_id: Option<String>,
pub state: VolumeState,
pub access_mode: AccessMode,
pub attributes: BTreeMap<String, String>,
pub created_tick: u64,
}Expand description
A storage volume.
Fields§
§id: u64Unique volume identifier.
name: StringHuman-readable name.
capacity_bytes: u64Capacity in bytes.
access_type: AccessTypeAccess type (block or mount).
fs_type: StringFilesystem type (e.g., “ext4”, “xfs”). Empty for block.
node_id: Option<String>Node this volume is published to (if any).
state: VolumeStateCurrent state.
access_mode: AccessModeAccess mode.
attributes: BTreeMap<String, String>Volume attributes.
created_tick: u64Tick when created.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Volume
impl RefUnwindSafe for Volume
impl Send for Volume
impl Sync for Volume
impl Unpin for Volume
impl UnwindSafe for Volume
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)