pub struct CheckResult {
pub category: String,
pub check: String,
pub severity: CheckSeverity,
pub message: String,
pub fix_available: bool,
pub fix_applied: Option<bool>,
pub suggested_fix: Option<String>,
}Expand description
A single check result.
Fields§
§category: StringCategory of the check (git, queue, runner, project, lock).
check: StringSpecific check name (e.g., “git_binary”, “queue_valid”).
severity: CheckSeveritySeverity level of the result.
message: StringHuman-readable message describing the result.
fix_available: boolWhether a fix is available for this issue.
fix_applied: Option<bool>Whether a fix was applied (None if not attempted, Some(true/false) if attempted).
suggested_fix: Option<String>Suggested fix or action for the user.
Implementations§
Source§impl CheckResult
impl CheckResult
Sourcepub fn success(category: &str, check: &str, message: &str) -> Self
pub fn success(category: &str, check: &str, message: &str) -> Self
Create a successful check result.
Sourcepub fn warning(
category: &str,
check: &str,
message: &str,
fix_available: bool,
suggested_fix: Option<&str>,
) -> Self
pub fn warning( category: &str, check: &str, message: &str, fix_available: bool, suggested_fix: Option<&str>, ) -> Self
Create a warning check result.
Sourcepub fn error(
category: &str,
check: &str,
message: &str,
fix_available: bool,
suggested_fix: Option<&str>,
) -> Self
pub fn error( category: &str, check: &str, message: &str, fix_available: bool, suggested_fix: Option<&str>, ) -> Self
Create an error check result.
Sourcepub fn with_fix_applied(self, applied: bool) -> Self
pub fn with_fix_applied(self, applied: bool) -> Self
Mark that a fix was applied to this check.
Trait Implementations§
Source§impl Clone for CheckResult
impl Clone for CheckResult
Source§fn clone(&self) -> CheckResult
fn clone(&self) -> CheckResult
Returns a duplicate 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
Auto Trait Implementations§
impl Freeze for CheckResult
impl RefUnwindSafe for CheckResult
impl Send for CheckResult
impl Sync for CheckResult
impl Unpin for CheckResult
impl UnsafeUnpin 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