#[non_exhaustive]pub struct ShieldedVmConfig {
pub enable_secure_boot: bool,
/* private fields */
}Available on crate feature
notebook-service only.Expand description
A set of Shielded Instance options. See Images using supported Shielded VM features.
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.enable_secure_boot: boolDefines whether the instance has Secure Boot enabled.
Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails.
Implementations§
Source§impl ShieldedVmConfig
impl ShieldedVmConfig
pub fn new() -> Self
Sourcepub fn set_enable_secure_boot<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_secure_boot<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_secure_boot.
§Example
ⓘ
let x = ShieldedVmConfig::new().set_enable_secure_boot(true);Trait Implementations§
Source§impl Clone for ShieldedVmConfig
impl Clone for ShieldedVmConfig
Source§fn clone(&self) -> ShieldedVmConfig
fn clone(&self) -> ShieldedVmConfig
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 ShieldedVmConfig
impl Debug for ShieldedVmConfig
Source§impl Default for ShieldedVmConfig
impl Default for ShieldedVmConfig
Source§fn default() -> ShieldedVmConfig
fn default() -> ShieldedVmConfig
Returns the “default value” for a type. Read more
Source§impl Message for ShieldedVmConfig
impl Message for ShieldedVmConfig
Source§impl PartialEq for ShieldedVmConfig
impl PartialEq for ShieldedVmConfig
impl StructuralPartialEq for ShieldedVmConfig
Auto Trait Implementations§
impl Freeze for ShieldedVmConfig
impl RefUnwindSafe for ShieldedVmConfig
impl Send for ShieldedVmConfig
impl Sync for ShieldedVmConfig
impl Unpin for ShieldedVmConfig
impl UnwindSafe for ShieldedVmConfig
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