pub struct Volume {
pub device_identifier: String,
pub volume_name: String,
pub media_type: String,
pub uuid: Option<String>,
pub size_bytes: u64,
pub mounted: bool,
pub mount_point: Option<String>,
pub parent_disk: Option<String>,
pub size_pretty: String,
pub location: String,
pub contents: Option<String>,
}Expand description
A discovered NTFS volume/partition.
Fields§
§device_identifier: Stringdisk2s2 style identifier.
volume_name: StringVolume name; may be empty for unlabelled volumes.
media_type: StringMedia type: com.microsoft.ntfs, Microsoft Basic Data, …
uuid: Option<String>Logical volume UUID (if the plist provided one).
size_bytes: u64Size in bytes.
mounted: boolWhether the volume is currently mounted.
mount_point: Option<String>Mount point when mounted (e.g. /Volumes/MyData).
parent_disk: Option<String>Parent disk identifier (e.g. disk2).
size_pretty: StringHuman-readable size (e.g. 931.5 GiB).
location: StringLocation: internal or external.
contents: Option<String>Whole-disk contents (GUID_partition_scheme / Apple_partition_scheme / …).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Volume
impl<'de> Deserialize<'de> for Volume
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
impl Eq for Volume
impl StructuralPartialEq for Volume
Auto Trait Implementations§
impl Freeze for Volume
impl RefUnwindSafe for Volume
impl Send for Volume
impl Sync for Volume
impl Unpin for Volume
impl UnsafeUnpin for Volume
impl UnwindSafe for Volume
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.