pub enum JwtAlgorithm {
HS256,
RS256,
}Expand description
JWT signing algorithm
Variants§
HS256
HMAC-SHA256 (symmetric) — requires shared secret
RS256
RSA-SHA256 (asymmetric) — sign with private key, verify with public key
Trait Implementations§
Source§impl Clone for JwtAlgorithm
impl Clone for JwtAlgorithm
impl Copy for JwtAlgorithm
Source§impl Debug for JwtAlgorithm
impl Debug for JwtAlgorithm
impl Eq for JwtAlgorithm
Source§impl PartialEq for JwtAlgorithm
impl PartialEq for JwtAlgorithm
impl StructuralPartialEq for JwtAlgorithm
Auto Trait Implementations§
impl Freeze for JwtAlgorithm
impl RefUnwindSafe for JwtAlgorithm
impl Send for JwtAlgorithm
impl Sync for JwtAlgorithm
impl Unpin for JwtAlgorithm
impl UnsafeUnpin for JwtAlgorithm
impl UnwindSafe for JwtAlgorithm
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