pub struct SimpleStorage {
pub total_gb: f64,
pub available_gb: f64,
pub drive_type: String,
pub health: String,
}
Expand description
Simplified storage summary
Fields§
§total_gb: f64
Total storage capacity in GB
available_gb: f64
Available storage in GB
drive_type: String
Primary drive type (SSD, HDD, NVMe, etc.)
health: String
Storage health (Good, Warning, Critical)
Trait Implementations§
Source§impl Clone for SimpleStorage
impl Clone for SimpleStorage
Source§fn clone(&self) -> SimpleStorage
fn clone(&self) -> SimpleStorage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SimpleStorage
impl Debug for SimpleStorage
Source§impl<'de> Deserialize<'de> for SimpleStorage
impl<'de> Deserialize<'de> for SimpleStorage
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 SimpleStorage
impl RefUnwindSafe for SimpleStorage
impl Send for SimpleStorage
impl Sync for SimpleStorage
impl Unpin for SimpleStorage
impl UnwindSafe for SimpleStorage
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