pub struct CapacityConfig {
pub max_registration_states: usize,
pub max_authentication_states: usize,
pub max_access_tokens: usize,
pub max_refresh_tokens: usize,
pub max_auth_codes: usize,
pub max_registered_clients: Option<usize>,
}Expand description
Capacity limits for in-memory transient state and persistent stores.
Fields§
§max_registration_states: usizeMax pending passkey registration sessions. Default: 10000.
max_authentication_states: usizeMax pending passkey authentication sessions. Default: 10000.
max_access_tokens: usizeMax simultaneously stored access tokens. Default: 10000.
max_refresh_tokens: usizeMax simultaneously stored refresh tokens. Default: 10000.
max_auth_codes: usizeMax pending (unconsumed) authorization codes. Default: 10000.
max_registered_clients: Option<usize>Max dynamically registered OAuth clients.
Some(n)caps the store atnclients (defaultSome(1): preserves the historical single-client registration lock).Noneallows unlimited dynamic client registrations.
Trait Implementations§
Source§impl Clone for CapacityConfig
impl Clone for CapacityConfig
Source§fn clone(&self) -> CapacityConfig
fn clone(&self) -> CapacityConfig
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 CapacityConfig
impl Debug for CapacityConfig
Auto Trait Implementations§
impl Freeze for CapacityConfig
impl RefUnwindSafe for CapacityConfig
impl Send for CapacityConfig
impl Sync for CapacityConfig
impl Unpin for CapacityConfig
impl UnsafeUnpin for CapacityConfig
impl UnwindSafe for CapacityConfig
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