pub struct CheckResult { /* private fields */ }
Expand description
The results of a check.
Implementations§
Source§impl CheckResult
impl CheckResult
Sourcepub fn add_message<S>(&mut self, severity: Severity, message: S) -> &mut Self
pub fn add_message<S>(&mut self, severity: Severity, message: S) -> &mut Self
Add a message to the result.
Sourcepub fn add_warning<S: Into<String>>(&mut self, warning: S) -> &mut Self
pub fn add_warning<S: Into<String>>(&mut self, warning: S) -> &mut Self
Adds a warning message to the results.
Sourcepub fn add_alert<S: Into<String>>(
&mut self,
alert: S,
should_block: bool,
) -> &mut Self
pub fn add_alert<S: Into<String>>( &mut self, alert: S, should_block: bool, ) -> &mut Self
Adds an alert to the results.
These messages should be brought to the attention of those maintaining the deployment of the checks.
Sourcepub fn add_error<S: Into<String>>(&mut self, error: S) -> &mut Self
pub fn add_error<S: Into<String>>(&mut self, error: S) -> &mut Self
Adds a error message to the results.
Also marks the checks as having failed.
Sourcepub fn make_temporary(&mut self) -> &mut Self
pub fn make_temporary(&mut self) -> &mut Self
Indicates that there are messages which may be temporary.
Trait Implementations§
Source§impl Clone for CheckResult
impl Clone for CheckResult
Source§fn clone(&self) -> CheckResult
fn clone(&self) -> CheckResult
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CheckResult
impl Debug for CheckResult
Source§impl Default for CheckResult
impl Default for CheckResult
Source§fn default() -> CheckResult
fn default() -> CheckResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CheckResult
impl RefUnwindSafe for CheckResult
impl Send for CheckResult
impl Sync for CheckResult
impl Unpin for CheckResult
impl UnwindSafe for CheckResult
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<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