pub struct SecurityCheckResult {
pub is_secure: bool,
pub current_version: Version,
pub issues: Vec<SecurityIssue>,
pub recommended_version: Option<Version>,
pub offline_mode: bool,
}Expand description
Security check result
Fields§
§is_secure: boolWhether the current version is secure
current_version: VersionCurrent installed version
issues: Vec<SecurityIssue>List of security issues affecting current version
recommended_version: Option<Version>Recommended version to update to
offline_mode: boolWhether running in offline mode
Implementations§
Source§impl SecurityCheckResult
impl SecurityCheckResult
Sourcepub fn has_critical_issues(&self) -> bool
pub fn has_critical_issues(&self) -> bool
Check if there are critical security issues
Sourcepub fn highest_severity(&self) -> Option<&Severity>
pub fn highest_severity(&self) -> Option<&Severity>
Get the highest severity level found
Sourcepub fn severity_counts(&self) -> HashMap<String, usize>
pub fn severity_counts(&self) -> HashMap<String, usize>
Get count of issues by severity
Trait Implementations§
Source§impl Clone for SecurityCheckResult
impl Clone for SecurityCheckResult
Source§fn clone(&self) -> SecurityCheckResult
fn clone(&self) -> SecurityCheckResult
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 moreAuto Trait Implementations§
impl Freeze for SecurityCheckResult
impl RefUnwindSafe for SecurityCheckResult
impl Send for SecurityCheckResult
impl Sync for SecurityCheckResult
impl Unpin for SecurityCheckResult
impl UnsafeUnpin for SecurityCheckResult
impl UnwindSafe for SecurityCheckResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more