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: bool
If our checkers return success, we change this bool to True
text: String
text is the text before we check it.
description: String
Description of the checked text.
checker_name: &'static str
Name of the Checker we are using
checker_description: &'static str
Description of the Checker we are using
link: &'static str
Link 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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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