#[non_exhaustive]pub struct ConfidentialInstanceConfig {
pub enable_confidential_compute: bool,
/* private fields */
}Expand description
Confidential Instance Config for clusters using Confidential VMs
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_confidential_compute: boolOptional. Defines whether the instance should have confidential compute enabled.
Implementations§
Source§impl ConfidentialInstanceConfig
impl ConfidentialInstanceConfig
pub fn new() -> Self
Sourcepub fn set_enable_confidential_compute<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_confidential_compute<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_confidential_compute.
§Example
ⓘ
let x = ConfidentialInstanceConfig::new().set_enable_confidential_compute(true);Trait Implementations§
Source§impl Clone for ConfidentialInstanceConfig
impl Clone for ConfidentialInstanceConfig
Source§fn clone(&self) -> ConfidentialInstanceConfig
fn clone(&self) -> ConfidentialInstanceConfig
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 ConfidentialInstanceConfig
impl Debug for ConfidentialInstanceConfig
Source§impl Default for ConfidentialInstanceConfig
impl Default for ConfidentialInstanceConfig
Source§fn default() -> ConfidentialInstanceConfig
fn default() -> ConfidentialInstanceConfig
Returns the “default value” for a type. Read more
Source§impl Message for ConfidentialInstanceConfig
impl Message for ConfidentialInstanceConfig
impl StructuralPartialEq for ConfidentialInstanceConfig
Auto Trait Implementations§
impl Freeze for ConfidentialInstanceConfig
impl RefUnwindSafe for ConfidentialInstanceConfig
impl Send for ConfidentialInstanceConfig
impl Sync for ConfidentialInstanceConfig
impl Unpin for ConfidentialInstanceConfig
impl UnwindSafe for ConfidentialInstanceConfig
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