Struct easy_captcha::captcha::arithmetic::ArithmeticCaptcha
source · pub struct ArithmeticCaptcha { /* private fields */ }Expand description
算数验证码
Implementations§
source§impl ArithmeticCaptcha
impl ArithmeticCaptcha
sourcepub fn get_arithmetic_string(&mut self) -> String
pub fn get_arithmetic_string(&mut self) -> String
获取算式的字符串
Get the String of the arithmetic problem
sourcepub fn set_difficulty(&mut self, difficulty: usize)
pub fn set_difficulty(&mut self, difficulty: usize)
设置算术的难度;默认值为10
Set the difficulty of the arithmetic problem; default as 10.
sourcepub fn support_algorithm_sign(&mut self, algorithm_sign: usize)
pub fn support_algorithm_sign(&mut self, algorithm_sign: usize)
设置包含的算术符号。可选2~5,难度依次由低到高(加-减-乘-除)
Set the arithmetic symbol used in the arithmetic problem; Available from 2 to 5, which includes Plus, Minus, Multiply and Divide.
Trait Implementations§
source§impl AbstractCaptcha for ArithmeticCaptcha
impl AbstractCaptcha for ArithmeticCaptcha
source§impl NewCaptcha for ArithmeticCaptcha
impl NewCaptcha for ArithmeticCaptcha
Auto Trait Implementations§
impl RefUnwindSafe for ArithmeticCaptcha
impl Send for ArithmeticCaptcha
impl Sync for ArithmeticCaptcha
impl Unpin for ArithmeticCaptcha
impl UnwindSafe for ArithmeticCaptcha
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