pub struct LocalDecoder { /* private fields */ }
Expand description
Local decoder It uses the given JWKS to decode the JWT tokens.
Implementations§
Source§impl LocalDecoder
impl LocalDecoder
pub fn new( keys: Vec<DecodingKey>, validation: Validation, ) -> Result<Self, Error>
pub fn builder() -> LocalDecoderBuilder
Trait Implementations§
Source§impl Clone for LocalDecoder
impl Clone for LocalDecoder
Source§fn clone(&self) -> LocalDecoder
fn clone(&self) -> LocalDecoder
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 moreSource§impl<T> JwtDecoder<T> for LocalDecoderwhere
T: for<'de> DeserializeOwned,
impl<T> JwtDecoder<T> for LocalDecoderwhere
T: for<'de> DeserializeOwned,
Auto Trait Implementations§
impl Freeze for LocalDecoder
impl RefUnwindSafe for LocalDecoder
impl Send for LocalDecoder
impl Sync for LocalDecoder
impl Unpin for LocalDecoder
impl UnwindSafe for LocalDecoder
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