pub enum JwtKeyConfig {
Secret(String),
Rsa {
private_key: Option<String>,
public_key: String,
},
Ec {
private_key: Option<String>,
public_key: String,
},
}Expand description
JWT key configuration
Variants§
Secret(String)
Symmetric secret (for HS256/384/512)
Rsa
RSA key pair (PEM format)
Ec
EC key pair (PEM format)
Trait Implementations§
Source§impl Clone for JwtKeyConfig
impl Clone for JwtKeyConfig
Source§fn clone(&self) -> JwtKeyConfig
fn clone(&self) -> JwtKeyConfig
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 JwtKeyConfig
impl RefUnwindSafe for JwtKeyConfig
impl Send for JwtKeyConfig
impl Sync for JwtKeyConfig
impl Unpin for JwtKeyConfig
impl UnwindSafe for JwtKeyConfig
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