pub enum JWTPublicKey {
ES384 {
public: String,
},
}Variants§
Implementations§
Source§impl JWTPublicKey
impl JWTPublicKey
Sourcepub fn validate_jwt<E: DeserializeOwned + Clone>(&self, jwt: &str) -> Result<E>
pub fn validate_jwt<E: DeserializeOwned + Clone>(&self, jwt: &str) -> Result<E>
Validate a given JWT
Trait Implementations§
Source§impl Clone for JWTPublicKey
impl Clone for JWTPublicKey
Source§fn clone(&self) -> JWTPublicKey
fn clone(&self) -> JWTPublicKey
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 JWTPublicKey
impl Debug for JWTPublicKey
Source§impl<'de> Deserialize<'de> for JWTPublicKey
impl<'de> Deserialize<'de> for JWTPublicKey
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
Source§impl PartialEq for JWTPublicKey
impl PartialEq for JWTPublicKey
Source§impl Serialize for JWTPublicKey
impl Serialize for JWTPublicKey
impl Eq for JWTPublicKey
impl StructuralPartialEq for JWTPublicKey
Auto Trait Implementations§
impl Freeze for JWTPublicKey
impl RefUnwindSafe for JWTPublicKey
impl Send for JWTPublicKey
impl Sync for JWTPublicKey
impl Unpin for JWTPublicKey
impl UnwindSafe for JWTPublicKey
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