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,
}Expand description
The checkerResult struct is used to store the results of a checker.
Fields§
§is_identified: boolIf our checkers return success, we change this bool to True
text: Stringtext is the text before we check it.
description: StringDescription of the checked text.
checker_name: &'static strName of the Checker we are using
checker_description: &'static strDescription of the Checker we are using
link: &'static strLink to more info about checker
Implementations§
Source§impl CheckResult
To save time we have a default
for checkResult in case we fail
I do not believe the checker is important if failed
as we will not use it. To save time we will return a default
checker.
impl CheckResult
To save time we have a default for checkResult in case we fail I do not believe the checker is important if failed as we will not use it. To save time we will return a default checker.
Sourcepub fn new<Type>(checker_used: &Checker<Type>) -> CheckResult
pub fn new<Type>(checker_used: &Checker<Type>) -> CheckResult
Creates a default 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> 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