pub struct RemoteJwksDecoderBuilder { /* private fields */ }Expand description
Builder for RemoteJwksDecoder.
Implementations§
Source§impl RemoteJwksDecoderBuilder
impl RemoteJwksDecoderBuilder
Sourcepub fn config(&mut self, value: RemoteJwksDecoderConfig) -> &mut Self
pub fn config(&mut self, value: RemoteJwksDecoderConfig) -> &mut Self
Configuration for caching and retry behavior
Sourcepub fn keys_cache(
&mut self,
value: Arc<DashMap<String, DecodingKey>>,
) -> &mut Self
pub fn keys_cache( &mut self, value: Arc<DashMap<String, DecodingKey>>, ) -> &mut Self
Thread-safe cache mapping key IDs to decoding keys
Sourcepub fn validation(&mut self, value: Validation) -> &mut Self
pub fn validation(&mut self, value: Validation) -> &mut Self
JWT validation settings
Sourcepub fn initialized(&mut self, value: Arc<Notify>) -> &mut Self
pub fn initialized(&mut self, value: Arc<Notify>) -> &mut Self
Notification for initialization completion
Sourcepub fn build(&self) -> Result<RemoteJwksDecoder, RemoteJwksDecoderBuilderError>
pub fn build(&self) -> Result<RemoteJwksDecoder, RemoteJwksDecoderBuilderError>
Trait Implementations§
Source§impl Clone for RemoteJwksDecoderBuilder
impl Clone for RemoteJwksDecoderBuilder
Source§fn clone(&self) -> RemoteJwksDecoderBuilder
fn clone(&self) -> RemoteJwksDecoderBuilder
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 moreAuto Trait Implementations§
impl Freeze for RemoteJwksDecoderBuilder
impl !RefUnwindSafe for RemoteJwksDecoderBuilder
impl Send for RemoteJwksDecoderBuilder
impl Sync for RemoteJwksDecoderBuilder
impl Unpin for RemoteJwksDecoderBuilder
impl !UnwindSafe for RemoteJwksDecoderBuilder
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