use super::checker_type::Checker;
pub struct CheckResult {
pub is_identified: bool,
pub text: String,
pub description: String,
pub checker_name: &'static str,
pub checker_description: &'static str,
pub link: &'static str,
}
impl CheckResult {
pub fn new<Type>(checker_used: &Checker<Type>) -> CheckResult {
CheckResult {
is_identified: false,
text: "".to_string(),
checker_name: checker_used.name,
checker_description: checker_used.description,
description: "".to_string(),
link: checker_used.link,
}
}
}