[][src]Struct lightspeed_auth::config::AuthConfig

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: u32default_roles_on_account_creation: Vec<String>

Implementations

impl AuthConfig[src]

pub fn build() -> Self[src]

Trait Implementations

impl Clone for AuthConfig[src]

impl Debug for AuthConfig[src]

impl StructOpt for AuthConfig[src]

impl StructOptInternal for AuthConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,