pub struct ConstantTimeConfig {
pub enabled: bool,
pub apply_to_jwt: bool,
pub apply_to_session_tokens: bool,
pub apply_to_csrf_tokens: bool,
pub apply_to_refresh_tokens: bool,
}Expand description
Constant-time comparison configuration
Fields§
§enabled: boolEnable constant-time comparisons
apply_to_jwt: boolApply constant-time comparison to JWT tokens
apply_to_session_tokens: boolApply constant-time comparison to session tokens
apply_to_csrf_tokens: boolApply constant-time comparison to CSRF tokens
apply_to_refresh_tokens: boolApply constant-time comparison to refresh tokens
Implementations§
Trait Implementations§
Source§impl Clone for ConstantTimeConfig
impl Clone for ConstantTimeConfig
Source§fn clone(&self) -> ConstantTimeConfig
fn clone(&self) -> ConstantTimeConfig
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 ConstantTimeConfig
impl Debug for ConstantTimeConfig
Source§impl Default for ConstantTimeConfig
impl Default for ConstantTimeConfig
Source§impl<'de> Deserialize<'de> for ConstantTimeConfigwhere
ConstantTimeConfig: Default,
impl<'de> Deserialize<'de> for ConstantTimeConfigwhere
ConstantTimeConfig: 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 ConstantTimeConfig
impl RefUnwindSafe for ConstantTimeConfig
impl Send for ConstantTimeConfig
impl Sync for ConstantTimeConfig
impl Unpin for ConstantTimeConfig
impl UnwindSafe for ConstantTimeConfig
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