#[non_exhaustive]pub struct ShieldedInstanceConfig {
pub secure_boot: SecureBoot,
pub enable_vtpm: bool,
pub enable_integrity_monitoring: bool,
/* private fields */
}Expand description
Shielded instance configuration.
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.secure_boot: SecureBootOptional. Defines whether the instance created by the machine image has Secure Boot enabled. This can be set to true only if the image boot option is EFI.
enable_vtpm: boolOptional. Defines whether the instance created by the machine image has vTPM enabled. This can be set to true only if the image boot option is EFI.
enable_integrity_monitoring: boolOptional. Defines whether the instance created by the machine image has integrity monitoring enabled. This can be set to true only if the image boot option is EFI, and vTPM is enabled.
Implementations§
Source§impl ShieldedInstanceConfig
impl ShieldedInstanceConfig
Sourcepub fn set_secure_boot<T: Into<SecureBoot>>(self, v: T) -> Self
pub fn set_secure_boot<T: Into<SecureBoot>>(self, v: T) -> Self
Sets the value of secure_boot.
§Example
ⓘ
use google_cloud_vmmigration_v1::model::shielded_instance_config::SecureBoot;
let x0 = ShieldedInstanceConfig::new().set_secure_boot(SecureBoot::True);
let x1 = ShieldedInstanceConfig::new().set_secure_boot(SecureBoot::False);Sourcepub fn set_enable_vtpm<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_vtpm<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_vtpm.
§Example
ⓘ
let x = ShieldedInstanceConfig::new().set_enable_vtpm(true);Sourcepub fn set_enable_integrity_monitoring<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_integrity_monitoring<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_integrity_monitoring.
§Example
ⓘ
let x = ShieldedInstanceConfig::new().set_enable_integrity_monitoring(true);Trait Implementations§
Source§impl Clone for ShieldedInstanceConfig
impl Clone for ShieldedInstanceConfig
Source§fn clone(&self) -> ShieldedInstanceConfig
fn clone(&self) -> ShieldedInstanceConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ShieldedInstanceConfig
impl Debug for ShieldedInstanceConfig
Source§impl Default for ShieldedInstanceConfig
impl Default for ShieldedInstanceConfig
Source§fn default() -> ShieldedInstanceConfig
fn default() -> ShieldedInstanceConfig
Returns the “default value” for a type. Read more
Source§impl Message for ShieldedInstanceConfig
impl Message for ShieldedInstanceConfig
Source§impl PartialEq for ShieldedInstanceConfig
impl PartialEq for ShieldedInstanceConfig
Source§fn eq(&self, other: &ShieldedInstanceConfig) -> bool
fn eq(&self, other: &ShieldedInstanceConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShieldedInstanceConfig
Auto Trait Implementations§
impl Freeze for ShieldedInstanceConfig
impl RefUnwindSafe for ShieldedInstanceConfig
impl Send for ShieldedInstanceConfig
impl Sync for ShieldedInstanceConfig
impl Unpin for ShieldedInstanceConfig
impl UnsafeUnpin for ShieldedInstanceConfig
impl UnwindSafe for ShieldedInstanceConfig
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