pub struct RemoteJwksDecoderConfigBuilder { /* private fields */ }
Expand description
Builder for RemoteJwksDecoderConfig
.
Implementations§
Source§impl RemoteJwksDecoderConfigBuilder
impl RemoteJwksDecoderConfigBuilder
Sourcepub fn cache_duration(&mut self, value: Duration) -> &mut Self
pub fn cache_duration(&mut self, value: Duration) -> &mut Self
How long to cache the JWKS keys for
Sourcepub fn retry_count(&mut self, value: usize) -> &mut Self
pub fn retry_count(&mut self, value: usize) -> &mut Self
How many times to retry fetching the JWKS keys if it fails
Sourcepub fn backoff(&mut self, value: Duration) -> &mut Self
pub fn backoff(&mut self, value: Duration) -> &mut Self
How long to wait before retrying fetching the JWKS keys
Sourcepub fn build(
&self,
) -> Result<RemoteJwksDecoderConfig, RemoteJwksDecoderConfigBuilderError>
pub fn build( &self, ) -> Result<RemoteJwksDecoderConfig, RemoteJwksDecoderConfigBuilderError>
Trait Implementations§
Source§impl Clone for RemoteJwksDecoderConfigBuilder
impl Clone for RemoteJwksDecoderConfigBuilder
Source§fn clone(&self) -> RemoteJwksDecoderConfigBuilder
fn clone(&self) -> RemoteJwksDecoderConfigBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for RemoteJwksDecoderConfigBuilder
impl RefUnwindSafe for RemoteJwksDecoderConfigBuilder
impl Send for RemoteJwksDecoderConfigBuilder
impl Sync for RemoteJwksDecoderConfigBuilder
impl Unpin for RemoteJwksDecoderConfigBuilder
impl UnwindSafe for RemoteJwksDecoderConfigBuilder
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