openauth-core 0.0.2

Core types and primitives for OpenAuth.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Password policy configuration.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct PasswordOptions {
    pub min_password_length: usize,
    pub max_password_length: usize,
}

impl Default for PasswordOptions {
    fn default() -> Self {
        Self {
            min_password_length: 8,
            max_password_length: 128,
        }
    }
}