Expand description

Defense datatypes

use libmcaptcha::{LevelBuilder, DefenseBuilder};
DefenseBuilder::default()
       .add_level(
           LevelBuilder::default()
               .visitor_threshold(50)
               .difficulty_factor(50)
               .unwrap()
               .build()
               .unwrap(),
       )
       .unwrap()
       .add_level(
           LevelBuilder::default()
               .visitor_threshold(500)
               .difficulty_factor(500)
               .unwrap()
               .build()
               .unwrap(),
       )
       .unwrap()
       .build()
       .unwrap();

Structs

struct describes all the different Levels at which an mCaptcha system operates

Builder struct for Defense

Level struct that describes threshold-difficulty factor mapping

Bulder struct for Level to describe threshold-difficulty factor mapping