pub struct Check {
pub id: String,
pub status: CheckStatus,
pub message: String,
pub location: Option<Location>,
pub details: BTreeMap<String, String>,
}Fields§
§id: String§status: CheckStatus§message: String§location: Option<Location>§details: BTreeMap<String, String>Implementations§
Source§impl Check
impl Check
pub fn pass( id: impl Into<String>, message: impl Into<String>, location: Option<Location>, ) -> Self
pub fn warn( id: impl Into<String>, message: impl Into<String>, location: Option<Location>, ) -> Self
pub fn fail( id: impl Into<String>, message: impl Into<String>, location: Option<Location>, ) -> Self
pub fn skip( id: impl Into<String>, message: impl Into<String>, location: Option<Location>, ) -> Self
pub fn with_detail( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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