Struct git_checks_core::CheckResult
source · 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 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