pub enum KeyData<'a> {
Secret(&'a str),
PrivateKeyPem(&'a str),
PrivateKeyDer(&'a [u8]),
None,
}Expand description
Encoding key types for JWT
Variants§
Secret(&'a str)
Secret for HMAC algorithms
PrivateKeyPem(&'a str)
RSA or ECDSA private key in PEM format
PrivateKeyDer(&'a [u8])
RSA or ECDSA private key in DER format
None
No key (for ‘none’ algorithm)
Auto Trait Implementations§
impl<'a> Freeze for KeyData<'a>
impl<'a> RefUnwindSafe for KeyData<'a>
impl<'a> Send for KeyData<'a>
impl<'a> Sync for KeyData<'a>
impl<'a> Unpin for KeyData<'a>
impl<'a> UnsafeUnpin for KeyData<'a>
impl<'a> UnwindSafe for KeyData<'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