pub struct CnsVolumeAttachDetachSpec {
pub volume_id: CnsVolumeId,
pub vm: ManagedObjectReference,
}Expand description
Data object for specifications for volume attach/detach operations.
This structure may be used only with operations rendered under /vsan.
§How to access
CnsVolumeManager::cns_attach_volume(attach_specs)CnsVolumeManager::cns_detach_volume(detach_specs)
Fields§
§volume_id: CnsVolumeIdUnique identifier and datastore information for the volume.
vm: ManagedObjectReferenceVirtualMachine to which this volume needs to be attached to.
Refers instance of VirtualMachine.
Trait Implementations§
Source§impl Debug for CnsVolumeAttachDetachSpec
impl Debug for CnsVolumeAttachDetachSpec
Source§impl VimObjectTrait for CnsVolumeAttachDetachSpec
impl VimObjectTrait for CnsVolumeAttachDetachSpec
fn as_vim_object_ref<'a>(&'a self) -> &'a dyn VimObjectTrait
fn data_type(&self) -> StructType
impl DataObjectTrait for CnsVolumeAttachDetachSpec
Auto Trait Implementations§
impl Freeze for CnsVolumeAttachDetachSpec
impl RefUnwindSafe for CnsVolumeAttachDetachSpec
impl Send for CnsVolumeAttachDetachSpec
impl Sync for CnsVolumeAttachDetachSpec
impl Unpin for CnsVolumeAttachDetachSpec
impl UnsafeUnpin for CnsVolumeAttachDetachSpec
impl UnwindSafe for CnsVolumeAttachDetachSpec
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