# [−] [src] Module m_captcha::defense

Defense datatypes

    use m_captcha::{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

Defense | struct describes all the different Levels at which an mCaptcha system operates
DefenseBuilder | Builder struct for Defense
Level | Level struct that describes threshold-difficulty factor mapping
LevelBuilder | Bulder struct for Level to describe threshold-difficulty factor mapping