pub struct AuthConfig {
pub token_expires_in: u64,
pub refresh_token_expires_in: u64,
pub issuer: String,
pub audience: String,
pub password_min_length: usize,
pub password_require_digit: bool,
pub password_require_special: bool,
pub max_login_attempts: u32,
pub lockout_duration: u64,
}Expand description
认证配置
Fields§
§token_expires_in: u64Token 过期时间 (秒)
refresh_token_expires_in: u64刷新 Token 过期时间 (秒)
issuer: StringToken 签发者
audience: StringToken 受众
password_min_length: usize密码最小长度
password_require_digit: bool是否要求密码包含数字
password_require_special: bool是否要求密码包含特殊字符
max_login_attempts: u32登录失败锁定阈值
lockout_duration: u64锁定时间 (秒)
Trait Implementations§
Source§impl Clone for AuthConfig
impl Clone for AuthConfig
Source§fn clone(&self) -> AuthConfig
fn clone(&self) -> AuthConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthConfig
impl Debug for AuthConfig
Auto Trait Implementations§
impl Freeze for AuthConfig
impl RefUnwindSafe for AuthConfig
impl Send for AuthConfig
impl Sync for AuthConfig
impl Unpin for AuthConfig
impl UnsafeUnpin for AuthConfig
impl UnwindSafe for AuthConfig
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