pub struct DiskAttachment {
pub device_name: Option<String>,
pub index: Option<u32>,
}Expand description
How to attach a disk to a Replica.
This type is not used in any activity, and only used as part of another schema.
Fields§
§device_name: Option<String>The device name of this disk.
index: Option<u32>A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, this is assigned by the server.
Trait Implementations§
Source§impl Clone for DiskAttachment
impl Clone for DiskAttachment
Source§fn clone(&self) -> DiskAttachment
fn clone(&self) -> DiskAttachment
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 DiskAttachment
impl Debug for DiskAttachment
Source§impl Default for DiskAttachment
impl Default for DiskAttachment
Source§fn default() -> DiskAttachment
fn default() -> DiskAttachment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DiskAttachment
impl<'de> Deserialize<'de> for DiskAttachment
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
Source§impl Serialize for DiskAttachment
impl Serialize for DiskAttachment
impl Part for DiskAttachment
Auto Trait Implementations§
impl Freeze for DiskAttachment
impl RefUnwindSafe for DiskAttachment
impl Send for DiskAttachment
impl Sync for DiskAttachment
impl Unpin for DiskAttachment
impl UnwindSafe for DiskAttachment
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