Struct cjval::ValSummary
source · pub struct ValSummary { /* private fields */ }
Expand description
Summary of a validation. It is possible that a validation check has not been performed because other checks returned errors (we do not want to have cascading errors).
Implementations§
source§impl ValSummary
impl ValSummary
sourcepub fn is_warning(&self) -> bool
pub fn is_warning(&self) -> bool
Returns true if it’s a warning (and not an error)
sourcepub fn is_valid(&self) -> bool
pub fn is_valid(&self) -> bool
Returns true if valid, false if not (and also false if not performed)
sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Returns true if errors are present
Trait Implementations§
source§impl Debug for ValSummary
impl Debug for ValSummary
Auto Trait Implementations§
impl Freeze for ValSummary
impl RefUnwindSafe for ValSummary
impl Send for ValSummary
impl Sync for ValSummary
impl Unpin for ValSummary
impl UnwindSafe for ValSummary
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