pub struct PasskeyRateLimit {
pub window: Duration,
pub max: u64,
}Expand description
Rate limit settings for passkey ceremony endpoints (challenge generation and verification).
Defaults match RustAuth core’s strict sign-in policy (3 requests per 10 seconds).
Fields§
§window: Duration§max: u64Implementations§
Trait Implementations§
Source§impl Clone for PasskeyRateLimit
impl Clone for PasskeyRateLimit
Source§fn clone(&self) -> PasskeyRateLimit
fn clone(&self) -> PasskeyRateLimit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PasskeyRateLimit
Source§impl Debug for PasskeyRateLimit
impl Debug for PasskeyRateLimit
Source§impl Default for PasskeyRateLimit
impl Default for PasskeyRateLimit
impl Eq for PasskeyRateLimit
Source§impl PartialEq for PasskeyRateLimit
impl PartialEq for PasskeyRateLimit
Source§fn eq(&self, other: &PasskeyRateLimit) -> bool
fn eq(&self, other: &PasskeyRateLimit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PasskeyRateLimit
Auto Trait Implementations§
impl Freeze for PasskeyRateLimit
impl RefUnwindSafe for PasskeyRateLimit
impl Send for PasskeyRateLimit
impl Sync for PasskeyRateLimit
impl Unpin for PasskeyRateLimit
impl UnsafeUnpin for PasskeyRateLimit
impl UnwindSafe for PasskeyRateLimit
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.