#[non_exhaustive]pub struct ShieldedInstanceIntegrityPolicy {
pub update_auto_learn_policy: Option<bool>,
/* private fields */
}Available on crate feature
instances only.Expand description
The policy describes the baseline against which Instance boot integrity is measured.
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.update_auto_learn_policy: Option<bool>Updates the integrity policy baseline using the measurements from the VM instance’s most recent boot.
Implementations§
Source§impl ShieldedInstanceIntegrityPolicy
impl ShieldedInstanceIntegrityPolicy
pub fn new() -> Self
Sourcepub fn set_update_auto_learn_policy<T>(self, v: T) -> Self
pub fn set_update_auto_learn_policy<T>(self, v: T) -> Self
Sets the value of update_auto_learn_policy.
§Example
ⓘ
let x = ShieldedInstanceIntegrityPolicy::new().set_update_auto_learn_policy(true);Sourcepub fn set_or_clear_update_auto_learn_policy<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_auto_learn_policy<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_auto_learn_policy.
§Example
ⓘ
let x = ShieldedInstanceIntegrityPolicy::new().set_or_clear_update_auto_learn_policy(Some(false));
let x = ShieldedInstanceIntegrityPolicy::new().set_or_clear_update_auto_learn_policy(None::<bool>);Trait Implementations§
Source§impl Clone for ShieldedInstanceIntegrityPolicy
impl Clone for ShieldedInstanceIntegrityPolicy
Source§fn clone(&self) -> ShieldedInstanceIntegrityPolicy
fn clone(&self) -> ShieldedInstanceIntegrityPolicy
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 ShieldedInstanceIntegrityPolicy
impl Default for ShieldedInstanceIntegrityPolicy
Source§fn default() -> ShieldedInstanceIntegrityPolicy
fn default() -> ShieldedInstanceIntegrityPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for ShieldedInstanceIntegrityPolicy
impl PartialEq for ShieldedInstanceIntegrityPolicy
Source§fn eq(&self, other: &ShieldedInstanceIntegrityPolicy) -> bool
fn eq(&self, other: &ShieldedInstanceIntegrityPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShieldedInstanceIntegrityPolicy
Auto Trait Implementations§
impl Freeze for ShieldedInstanceIntegrityPolicy
impl RefUnwindSafe for ShieldedInstanceIntegrityPolicy
impl Send for ShieldedInstanceIntegrityPolicy
impl Sync for ShieldedInstanceIntegrityPolicy
impl Unpin for ShieldedInstanceIntegrityPolicy
impl UnwindSafe for ShieldedInstanceIntegrityPolicy
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