Struct git_checks_core::impl_prelude::CheckResult
source · [−]pub struct CheckResult { /* private fields */ }
Expand description
The results of a check.
Implementations
sourceimpl CheckResult
impl CheckResult
sourcepub fn add_message<S>(&mut self, severity: Severity, message: S) -> &mut Self where
S: Into<String>,
pub fn add_message<S>(&mut self, severity: Severity, message: S) -> &mut Self where
S: Into<String>,
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.
sourcepub fn warnings(&self) -> &Vec<String>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn warnings(&self) -> &Vec<String>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
The warnings from the checks.
sourcepub fn alerts(&self) -> &Vec<String>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn alerts(&self) -> &Vec<String>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
The alerts from the checks.
Trait Implementations
sourceimpl Debug for CheckResult
impl Debug for CheckResult
sourceimpl Default for CheckResult
impl Default for CheckResult
sourcefn default() -> CheckResult
fn default() -> CheckResult
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for CheckResult
impl Send for CheckResult
impl Sync for CheckResult
impl Unpin for CheckResult
impl UnwindSafe for CheckResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more