pub struct CheckResult {
pub check_name: String,
pub check_description: String,
pub score: f32,
pub weight: u8,
pub problems: Vec<Problem>,
pub total_checks: usize,
pub status: ResultCode,
}Expand description
The result of an individual check
Fields§
§check_name: StringThe name of the check
check_description: StringA description of what the check does and why
score: f32The score for the check from 0.0 to 1.0
weight: u8The weight of the check in the overall score for language support
problems: Vec<Problem>The problems found during the check
total_checks: usizeThe total number of sub-tests run
status: ResultCodeThe overall status of the check
Implementations§
Source§impl CheckResult
impl CheckResult
Sourcepub fn summary_result(&self) -> String
pub fn summary_result(&self) -> String
Describe the result in a sentence
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
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
Source§impl<'de> Deserialize<'de> for CheckResult
impl<'de> Deserialize<'de> for CheckResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CheckResult
impl Display 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more