#[non_exhaustive]pub struct OverlapPolicy {
pub overlap_seconds: i64,
}Expand description
Rotation policy — how long a retiring key keeps verifying in-flight
tokens before prune_retired_keys
drops it.
Default 24 h matches the doc’s service_overlap_window knob. Longer
overlaps tolerate slower JWKS-cache propagation at the cost of a wider
window in which a leaked old secret could still mint accepted tokens —
pick to taste.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.overlap_seconds: i64Implementations§
Source§impl OverlapPolicy
impl OverlapPolicy
Sourcepub const DEFAULT_OVERLAP_SECONDS: i64
pub const DEFAULT_OVERLAP_SECONDS: i64
24 hours.
pub fn new(overlap_seconds: i64) -> Self
pub fn with_overlap_seconds(self, seconds: i64) -> Self
Trait Implementations§
Source§impl Clone for OverlapPolicy
impl Clone for OverlapPolicy
Source§fn clone(&self) -> OverlapPolicy
fn clone(&self) -> OverlapPolicy
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 OverlapPolicy
Source§impl Debug for OverlapPolicy
impl Debug for OverlapPolicy
Source§impl Default for OverlapPolicy
impl Default for OverlapPolicy
impl Eq for OverlapPolicy
Source§impl PartialEq for OverlapPolicy
impl PartialEq for OverlapPolicy
impl StructuralPartialEq for OverlapPolicy
Auto Trait Implementations§
impl Freeze for OverlapPolicy
impl RefUnwindSafe for OverlapPolicy
impl Send for OverlapPolicy
impl Sync for OverlapPolicy
impl Unpin for OverlapPolicy
impl UnsafeUnpin for OverlapPolicy
impl UnwindSafe for OverlapPolicy
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