pub enum VerifyKeyData<'a> {
Secret(&'a str),
PublicKeyPem(&'a str),
PublicKeyDer(&'a [u8]),
}Expand description
Verification key types for JWT
Variants§
Secret(&'a str)
Secret for HMAC algorithms
PublicKeyPem(&'a str)
RSA or ECDSA public key in PEM format
PublicKeyDer(&'a [u8])
RSA or ECDSA public key in DER format
Auto Trait Implementations§
impl<'a> Freeze for VerifyKeyData<'a>
impl<'a> RefUnwindSafe for VerifyKeyData<'a>
impl<'a> Send for VerifyKeyData<'a>
impl<'a> Sync for VerifyKeyData<'a>
impl<'a> Unpin for VerifyKeyData<'a>
impl<'a> UnsafeUnpin for VerifyKeyData<'a>
impl<'a> UnwindSafe for VerifyKeyData<'a>
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