pub struct SecurityChecker {
issues: Vec<SecurityIssue>,
}Expand description
Security checker
Fields§
§issues: Vec<SecurityIssue>Implementations§
Source§impl SecurityChecker
impl SecurityChecker
pub fn new() -> Self
pub fn add_issue(&mut self, issue: SecurityIssue)
pub fn issues(&self) -> &[SecurityIssue]
pub fn has_critical(&self) -> bool
pub fn has_high(&self) -> bool
pub fn count_by_severity(&self, sev: SecuritySeverity) -> usize
pub fn clear(&mut self)
Trait Implementations§
Source§impl Default for SecurityChecker
impl Default for SecurityChecker
Source§fn default() -> SecurityChecker
fn default() -> SecurityChecker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SecurityChecker
impl RefUnwindSafe for SecurityChecker
impl Send for SecurityChecker
impl Sync for SecurityChecker
impl Unpin for SecurityChecker
impl UnwindSafe for SecurityChecker
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> 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