pub struct DataDisk {
pub name: String,
pub key: String,
pub size_gb: u32,
pub fs: Filesystem,
pub mount: Option<String>,
}Expand description
A data disk of a machine.
Fields§
§name: StringIts name in the spec (the filesystem’s label).
key: StringThe name the platform knows it by: <machine>-<disk>.
size_gb: u32Its size, in GB.
fs: FilesystemIts filesystem, the OS’s default when the spec leaves it out.
mount: Option<String>Where it is mounted (a path, or a drive letter on Windows); None for a raw disk.
Implementations§
Trait Implementations§
impl Eq for DataDisk
impl StructuralPartialEq for DataDisk
Auto Trait Implementations§
impl Freeze for DataDisk
impl RefUnwindSafe for DataDisk
impl Send for DataDisk
impl Sync for DataDisk
impl Unpin for DataDisk
impl UnsafeUnpin for DataDisk
impl UnwindSafe for DataDisk
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,
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.