#[non_exhaustive]pub struct AttachedDisk {
pub source_disk: String,
pub mode: DiskMode,
/* private fields */
}Expand description
A node-attached disk resource. Next ID: 8;
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source_disk: StringSpecifies the full path to an existing disk. For example: “projects/my-project/zones/us-central1-c/disks/my-disk”.
mode: DiskModeThe mode in which to attach this disk. If not specified, the default is READ_WRITE mode. Only applicable to data_disks.
Implementations§
Source§impl AttachedDisk
impl AttachedDisk
Trait Implementations§
Source§impl Clone for AttachedDisk
impl Clone for AttachedDisk
Source§fn clone(&self) -> AttachedDisk
fn clone(&self) -> AttachedDisk
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 AttachedDisk
impl Debug for AttachedDisk
Source§impl Default for AttachedDisk
impl Default for AttachedDisk
Source§fn default() -> AttachedDisk
fn default() -> AttachedDisk
Returns the “default value” for a type. Read more
Source§impl Message for AttachedDisk
impl Message for AttachedDisk
Source§impl PartialEq for AttachedDisk
impl PartialEq for AttachedDisk
impl StructuralPartialEq for AttachedDisk
Auto Trait Implementations§
impl Freeze for AttachedDisk
impl RefUnwindSafe for AttachedDisk
impl Send for AttachedDisk
impl Sync for AttachedDisk
impl Unpin for AttachedDisk
impl UnsafeUnpin for AttachedDisk
impl UnwindSafe for AttachedDisk
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