pub struct Check {
pub id: String,
pub status: CheckStatus,
pub message: String,
pub location: Option<String>,
pub details: Option<Value>,
}Fields§
§id: String§status: CheckStatus§message: String§location: Option<String>§details: Option<Value>Implementations§
Source§impl Check
impl Check
pub fn new( id: impl Into<String>, status: CheckStatus, message: impl Into<String>, ) -> Self
pub fn pass(id: impl Into<String>, message: impl Into<String>) -> Self
pub fn warn(id: impl Into<String>, message: impl Into<String>) -> Self
pub fn fail(id: impl Into<String>, message: impl Into<String>) -> Self
pub fn skip(id: impl Into<String>, message: impl Into<String>) -> Self
pub fn at(self, location: impl Into<String>) -> Self
pub fn with_details(self, details: Value) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Check
impl<'de> Deserialize<'de> for Check
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
impl Eq for Check
impl StructuralPartialEq for Check
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.