Struct git_checks::impl_prelude::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 Selfwhere
S: ToString,
pub fn add_message<S>(&mut self, severity: Severity, message: S) -> &mut Selfwhere
S: ToString,
Add a message to the result.
sourcepub fn add_warning<S: ToString>(&mut self, warning: S) -> &mut Self
pub fn add_warning<S: ToString>(&mut self, warning: S) -> &mut Self
Adds a warning message to the results.
sourcepub fn add_alert<S: ToString>(
&mut self,
alert: S,
should_block: bool
) -> &mut Self
pub fn add_alert<S: ToString>(
&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: ToString>(&mut self, error: S) -> &mut Self
pub fn add_error<S: ToString>(&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