pub struct Check {
pub check: &'static str,
pub status: Status,
pub detail: String,
pub hint: Option<String>,
}Expand description
One check: its name, its result, what was found and, on a warning or a failure, how to fix it.
Fields§
§check: &'static strLike Password.
status: Status§detail: String§hint: Option<String>Implementations§
Source§impl Check
impl Check
pub fn ok(check: &'static str, detail: impl Into<String>) -> Self
pub fn skip(check: &'static str, detail: impl Into<String>) -> Self
pub fn warn( check: &'static str, detail: impl Into<String>, hint: impl Into<String>, ) -> Self
pub fn fail( check: &'static str, detail: impl Into<String>, hint: impl Into<String>, ) -> Self
Trait Implementations§
impl Eq for Check
impl StructuralPartialEq for Check
Auto Trait Implementations§
impl Forget for Check
impl Freeze for Check
impl Move for Check
impl RefUnwindSafe for Check
impl Send for Check
impl Sync for Check
impl Unpin for Check
impl UnsafeUnpin for Check
impl UnwindSafe for Check
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