pub struct SignInOpts {
pub enable_fail_to_ban: Option<Fail2BanOptions>,
pub token_encryption_type: TokenEncryptionType,
}Expand description
Sign in options.
Fields§
§enable_fail_to_ban: Option<Fail2BanOptions>Ban (permanently or temporarily) on unsuccessful attempts.
token_encryption_type: TokenEncryptionTypeToken encryption type.
This is how you can protect any sensitive data inside authorization tokens. C3A service usually exposes only user ID hash, CBA token requirement and assigned tags.
Implementations§
Source§impl SignInOpts
impl SignInOpts
Sourcepub fn with_fail2ban(self, fail2ban: Option<Fail2BanOptions>) -> Self
pub fn with_fail2ban(self, fail2ban: Option<Fail2BanOptions>) -> Self
Specifies fail2ban options.
Sourcepub fn with_token_encryption(
self,
token_encryption_type: TokenEncryptionType,
) -> Self
pub fn with_token_encryption( self, token_encryption_type: TokenEncryptionType, ) -> Self
Specifies token encryption type.
Trait Implementations§
Source§impl Clone for SignInOpts
impl Clone for SignInOpts
Source§fn clone(&self) -> SignInOpts
fn clone(&self) -> SignInOpts
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 SignInOpts
impl Debug for SignInOpts
Source§impl Default for SignInOpts
impl Default for SignInOpts
Source§impl<'de> Deserialize<'de> for SignInOpts
impl<'de> Deserialize<'de> for SignInOpts
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
Source§impl Hash for SignInOpts
impl Hash for SignInOpts
Source§impl PartialEq for SignInOpts
impl PartialEq for SignInOpts
Source§impl Serialize for SignInOpts
impl Serialize for SignInOpts
Source§impl ToSchema for SignInOpts
impl ToSchema for SignInOpts
impl Eq for SignInOpts
impl StructuralPartialEq for SignInOpts
Auto Trait Implementations§
impl Freeze for SignInOpts
impl RefUnwindSafe for SignInOpts
impl Send for SignInOpts
impl Sync for SignInOpts
impl Unpin for SignInOpts
impl UnwindSafe for SignInOpts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.