Struct lightspeed_auth::config::AuthConfig
source · pub struct AuthConfig {
pub activation_token_validity_minutes: i64,
pub auth_session_max_validity_minutes: i64,
pub bcrypt_password_hash_cost: u32,
pub default_roles_on_account_creation: Vec<String>,
}
Fields§
§activation_token_validity_minutes: i64
Determines the activation token validity minutes
auth_session_max_validity_minutes: i64
Determines the maximum session validity minutes. Once the session expires it is not possible to refresh it and the user needs to reenter his credentials.
bcrypt_password_hash_cost: u32
§default_roles_on_account_creation: Vec<String>
Trait Implementations§
source§impl Clone for AuthConfig
impl Clone for AuthConfig
source§fn clone(&self) -> AuthConfig
fn clone(&self) -> AuthConfig
Returns a copy 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
source§impl Default for AuthConfig
impl Default for AuthConfig
source§impl<'de> Deserialize<'de> for AuthConfigwhere
AuthConfig: Default,
impl<'de> Deserialize<'de> for AuthConfigwhere
AuthConfig: Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AuthConfig
impl RefUnwindSafe for AuthConfig
impl Send for AuthConfig
impl Sync for AuthConfig
impl Unpin 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