#[non_exhaustive]pub struct InstancesStartWithEncryptionKeyRequest {
pub disks: Vec<CustomerEncryptionKeyProtectedDisk>,
/* private fields */
}Available on crate feature
instances only.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.disks: Vec<CustomerEncryptionKeyProtectedDisk>Array of disks associated with this instance that are protected with acustomer-supplied encryption key.
In order to start the instance, the disk url and its corresponding key must be provided.
If the disk is not protected with a customer-supplied encryption key it should not be specified.
Implementations§
Source§impl InstancesStartWithEncryptionKeyRequest
impl InstancesStartWithEncryptionKeyRequest
pub fn new() -> Self
Sourcepub fn set_disks<T, V>(self, v: T) -> Self
pub fn set_disks<T, V>(self, v: T) -> Self
Sets the value of disks.
§Example
ⓘ
use google_cloud_compute_v1::model::CustomerEncryptionKeyProtectedDisk;
let x = InstancesStartWithEncryptionKeyRequest::new()
.set_disks([
CustomerEncryptionKeyProtectedDisk::default()/* use setters */,
CustomerEncryptionKeyProtectedDisk::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for InstancesStartWithEncryptionKeyRequest
impl Clone for InstancesStartWithEncryptionKeyRequest
Source§fn clone(&self) -> InstancesStartWithEncryptionKeyRequest
fn clone(&self) -> InstancesStartWithEncryptionKeyRequest
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 Default for InstancesStartWithEncryptionKeyRequest
impl Default for InstancesStartWithEncryptionKeyRequest
Source§fn default() -> InstancesStartWithEncryptionKeyRequest
fn default() -> InstancesStartWithEncryptionKeyRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for InstancesStartWithEncryptionKeyRequest
impl PartialEq for InstancesStartWithEncryptionKeyRequest
Source§fn eq(&self, other: &InstancesStartWithEncryptionKeyRequest) -> bool
fn eq(&self, other: &InstancesStartWithEncryptionKeyRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InstancesStartWithEncryptionKeyRequest
Auto Trait Implementations§
impl Freeze for InstancesStartWithEncryptionKeyRequest
impl RefUnwindSafe for InstancesStartWithEncryptionKeyRequest
impl Send for InstancesStartWithEncryptionKeyRequest
impl Sync for InstancesStartWithEncryptionKeyRequest
impl Unpin for InstancesStartWithEncryptionKeyRequest
impl UnwindSafe for InstancesStartWithEncryptionKeyRequest
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