pub struct Disk {
pub name: String,
pub fs: String,
pub storage_type: String,
pub mount_point: String,
pub available: u64,
pub size: u64,
}
Expand description
Information about a hard disk
Fields§
§name: String
Disk name
fs: String
Filesystem
storage_type: String
Storage type (ssd, hd…)
mount_point: String
Where it is mounted
available: u64
Available space
size: u64
Total size
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Disk
impl<'de> Deserialize<'de> for Disk
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
Auto Trait Implementations§
impl Freeze for Disk
impl RefUnwindSafe for Disk
impl Send for Disk
impl Sync for Disk
impl Unpin for Disk
impl UnwindSafe for Disk
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