pub struct FeatureCheck {
pub status: FeatureStatus,
pub detail: Option<String>,
}Expand description
A single security-feature determination: a machine-comparable status plus optional human context.
Fields§
§status: FeatureStatusWhether the feature is active.
detail: Option<String>Human-readable context (e.g. "AMD SME", "enable TME in BIOS").
Implementations§
Source§impl FeatureCheck
impl FeatureCheck
Sourcepub fn new(status: FeatureStatus) -> Self
pub fn new(status: FeatureStatus) -> Self
Construct a check with no detail.
Sourcepub fn with_detail(status: FeatureStatus, detail: impl Into<String>) -> Self
pub fn with_detail(status: FeatureStatus, detail: impl Into<String>) -> Self
Construct a check carrying human context.
Trait Implementations§
Source§impl Clone for FeatureCheck
impl Clone for FeatureCheck
Source§fn clone(&self) -> FeatureCheck
fn clone(&self) -> FeatureCheck
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 FeatureCheck
impl Debug for FeatureCheck
Source§impl<'de> Deserialize<'de> for FeatureCheck
impl<'de> Deserialize<'de> for FeatureCheck
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FeatureCheck
impl RefUnwindSafe for FeatureCheck
impl Send for FeatureCheck
impl Sync for FeatureCheck
impl Unpin for FeatureCheck
impl UnsafeUnpin for FeatureCheck
impl UnwindSafe for FeatureCheck
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