pub enum JwtDecodeSecret {
SharedSecret(DecodingKey, Algorithm),
RsaKey(DecodingKey, Algorithm),
EcdsaKey(DecodingKey, Algorithm),
}Variants§
A shared secret for HMAC algorithms.
RsaKey(DecodingKey, Algorithm)
EcdsaKey(DecodingKey, Algorithm)
Implementations§
Source§impl JwtDecodeSecret
impl JwtDecodeSecret
pub fn from_rsa_pem(pem: &[u8]) -> Result<Self, Error>
pub fn from_ec_pem(pem: &[u8]) -> Result<Self, Error>
Trait Implementations§
Source§impl Clone for JwtDecodeSecret
impl Clone for JwtDecodeSecret
Source§fn clone(&self) -> JwtDecodeSecret
fn clone(&self) -> JwtDecodeSecret
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 JwtDecodeSecret
impl RefUnwindSafe for JwtDecodeSecret
impl Send for JwtDecodeSecret
impl Sync for JwtDecodeSecret
impl Unpin for JwtDecodeSecret
impl UnsafeUnpin for JwtDecodeSecret
impl UnwindSafe for JwtDecodeSecret
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