pub struct JwksBuilder { /* private fields */ }Expand description
Builds a Jwks; see Jwks::builder.
Implementations§
Source§impl JwksBuilder
impl JwksBuilder
Sourcepub fn fixed(self, keys: Option<&JwtKeys>) -> Self
pub fn fixed(self, keys: Option<&JwtKeys>) -> Self
Accept the keys of PGRST_JWT_SECRET as well as the fetched ones.
See “With PGRST_JWT_SECRET” in the module documentation.
Sourcepub fn refresh(self, interval: Duration) -> Self
pub fn refresh(self, interval: Duration) -> Self
How long a set is used when the response carries no max-age
(PGRST_JWT_JWKS_REFRESH). Default DEFAULT_REFRESH; zero is
read as one second.
Sourcepub fn unknown_kid_interval(self, interval: Duration) -> Self
pub fn unknown_kid_interval(self, interval: Duration) -> Self
How often an unknown kid may cause a fetch. Default
UNKNOWN_KID_INTERVAL; for tests.
Auto Trait Implementations§
impl !RefUnwindSafe for JwksBuilder
impl !UnwindSafe for JwksBuilder
impl Freeze for JwksBuilder
impl Send for JwksBuilder
impl Sync for JwksBuilder
impl Unpin for JwksBuilder
impl UnsafeUnpin for JwksBuilder
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