Trait Check

Source
pub trait Check {
    // Required methods
    fn new() -> Self
       where Self: Sized;
    fn check(&self, text: &str) -> CheckResult;
    fn with_sensitivity(self, sensitivity: Sensitivity) -> Self
       where Self: Sized;
    fn get_sensitivity(&self) -> Sensitivity;
}
Expand description

Every checker must implement this trait Which checks the given text to see if its plaintext and returns CheckResult, which is our results object.

Required Methods§

Source

fn new() -> Self
where Self: Sized,

Returns a new struct of type CheckerType

Source

fn check(&self, text: &str) -> CheckResult

Checks the given text to see if its plaintext

Source

fn with_sensitivity(self, sensitivity: Sensitivity) -> Self
where Self: Sized,

Sets the sensitivity level for gibberish detection

Source

fn get_sensitivity(&self) -> Sensitivity

Gets the current sensitivity level

Implementors§

Source§

impl Check for Checker<Athena>

Source§

impl Check for Checker<DefaultChecker>

Source§

impl Check for Checker<EnglishChecker>

given an input, check every item in the array and return true if any of them match

Source§

impl Check for Checker<LemmeKnow>

Source§

impl Check for Checker<PasswordChecker>

Implementation of the Check trait for PasswordChecker

Source§

impl Check for Checker<RegexChecker>

Source§

impl Check for Checker<WaitAthena>

Source§

impl Check for Checker<WordlistChecker>