pub struct Settings {
pub max_age: Duration,
pub stale_while_revalidate: Option<Duration>,
pub stale_if_error: Option<Duration>,
}Expand description
Determines settings about updating the cached JWKS data. The JWKS will be lazily revalidated every time validate validates a token.
Fields§
§max_age: DurationTime in Seconds to refresh the JWKS from the OIDC Provider Default/Minimum value: 1 Second
stale_while_revalidate: Option<Duration>The amount of time a s
stale_if_error: Option<Duration>The amount of time the stale JWKS data should be valid for if we are unable to re-validate it from the URL. Minimum Value: 60 Seconds
Implementations§
Source§impl Settings
impl Settings
pub fn from_header_val(value: Option<&HeaderValue>) -> Self
Trait Implementations§
impl Copy for Settings
impl Eq for Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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.