Struct git_checks::CheckResult [−][src]
pub struct CheckResult { /* fields omitted */ }The results of a check.
Methods
impl CheckResult[src]
impl CheckResultpub fn new() -> Self[src]
pub fn new() -> SelfCreate a new results structure.
ⓘImportant traits for &'a mut Rpub fn add_message<S>(&mut self, severity: Severity, message: S) -> &mut Self where
S: ToString, [src]
pub fn add_message<S>(&mut self, severity: Severity, message: S) -> &mut Self where
S: ToString, Add a message to the result.
ⓘImportant traits for &'a mut Rpub fn add_warning<S: ToString>(&mut self, warning: S) -> &mut Self[src]
pub fn add_warning<S: ToString>(&mut self, warning: S) -> &mut SelfAdds a warning message to the results.
ⓘImportant traits for &'a mut Rpub fn add_alert<S: ToString>(
&mut self,
alert: S,
should_block: bool
) -> &mut Self[src]
pub fn add_alert<S: ToString>(
&mut self,
alert: S,
should_block: bool
) -> &mut SelfAdds an alert to the results.
These messages should be brought to the attention of those maintaining the deployment of the checks.
ⓘImportant traits for &'a mut Rpub fn add_error<S: ToString>(&mut self, error: S) -> &mut Self[src]
pub fn add_error<S: ToString>(&mut self, error: S) -> &mut SelfAdds a error message to the results.
Also marks the checks as having failed.
ⓘImportant traits for &'a mut Rpub fn make_temporary(&mut self) -> &mut Self[src]
pub fn make_temporary(&mut self) -> &mut SelfIndicates that there are messages which may be temporary.
ⓘImportant traits for &'a mut Rpub fn whitelist(&mut self) -> &mut Self[src]
pub fn whitelist(&mut self) -> &mut SelfAllows the checks to pass no matter what.
pub fn warnings(&self) -> &Vec<String>[src]
pub fn warnings(&self) -> &Vec<String>The warnings from the checks.
pub fn alerts(&self) -> &Vec<String>[src]
pub fn alerts(&self) -> &Vec<String>The alerts from the checks.
pub fn errors(&self) -> &Vec<String>[src]
pub fn errors(&self) -> &Vec<String>The errors from the checks.
pub fn temporary(&self) -> bool[src]
pub fn temporary(&self) -> boolWhether there are temporary messages or not.
pub fn allowed(&self) -> bool[src]
pub fn allowed(&self) -> boolWhether the checks will allow the commit no matter what.
pub fn pass(&self) -> bool[src]
pub fn pass(&self) -> boolWhether the checks passed or failed.
pub fn combine(self, other: Self) -> Self[src]
pub fn combine(self, other: Self) -> SelfCombine two results together.
Trait Implementations
impl Debug for CheckResult[src]
impl Debug for CheckResultfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for CheckResult[src]
impl Default for CheckResultfn default() -> CheckResult[src]
fn default() -> CheckResultReturns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for CheckResult
impl Send for CheckResultimpl Sync for CheckResult
impl Sync for CheckResult