pub enum JWTPrivateKey {
ES384 {
priv: String,
},
}Variants§
Implementations§
Source§impl JWTPrivateKey
impl JWTPrivateKey
Sourcepub fn generate_ec384_signing_key() -> Result<Self>
pub fn generate_ec384_signing_key() -> Result<Self>
Generate a new ES384 signing key
Sourcepub fn to_public_key(&self) -> Result<JWTPublicKey>
pub fn to_public_key(&self) -> Result<JWTPublicKey>
Get associated public key
Trait Implementations§
Source§impl Clone for JWTPrivateKey
impl Clone for JWTPrivateKey
Source§fn clone(&self) -> JWTPrivateKey
fn clone(&self) -> JWTPrivateKey
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 moreSource§impl Debug for JWTPrivateKey
impl Debug for JWTPrivateKey
Source§impl<'de> Deserialize<'de> for JWTPrivateKey
impl<'de> Deserialize<'de> for JWTPrivateKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for JWTPrivateKey
impl RefUnwindSafe for JWTPrivateKey
impl Send for JWTPrivateKey
impl Sync for JWTPrivateKey
impl Unpin for JWTPrivateKey
impl UnwindSafe for JWTPrivateKey
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