pub struct WrappedJsonWebKey {
pub kid: Option<String>,
pub alg: Option<String>,
pub _use: Option<String>,
pub jwk: JwkEcKey,
}
Expand description
A wrapped JSON Web Key with additional metadata.
Fields§
§kid: Option<String>
Key identifier (kid) for the JWK.
alg: Option<String>
Algorithm (alg) used with this key.
_use: Option<String>
Public key use (use) parameter, typically “sig” for signature operations.
jwk: JwkEcKey
The underlying elliptic curve JWK.
Trait Implementations§
Source§impl Clone for WrappedJsonWebKey
impl Clone for WrappedJsonWebKey
Source§fn clone(&self) -> WrappedJsonWebKey
fn clone(&self) -> WrappedJsonWebKey
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 WrappedJsonWebKey
impl Debug for WrappedJsonWebKey
Source§impl<'de> Deserialize<'de> for WrappedJsonWebKey
impl<'de> Deserialize<'de> for WrappedJsonWebKey
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 WrappedJsonWebKey
impl PartialEq for WrappedJsonWebKey
Source§impl Serialize for WrappedJsonWebKey
impl Serialize for WrappedJsonWebKey
Source§impl TryFrom<&WrappedJsonWebKey> for KeyData
Implements conversion from &WrappedJsonWebKey to KeyData.
impl TryFrom<&WrappedJsonWebKey> for KeyData
Implements conversion from &WrappedJsonWebKey to KeyData.
This provides both TryFrom<&WrappedJsonWebKey>
and TryInto<KeyData>
for &WrappedJsonWebKey
.
The conversion supports all elliptic curves: P-256, P-384, and K-256.
Source§impl TryFrom<WrappedJsonWebKey> for KeyData
Implements conversion from WrappedJsonWebKey to KeyData.
impl TryFrom<WrappedJsonWebKey> for KeyData
Implements conversion from WrappedJsonWebKey to KeyData.
This provides both TryFrom<WrappedJsonWebKey>
and TryInto<KeyData>
for WrappedJsonWebKey
.
The conversion supports all elliptic curves: P-256, P-384, and K-256.
impl StructuralPartialEq for WrappedJsonWebKey
Auto Trait Implementations§
impl Freeze for WrappedJsonWebKey
impl RefUnwindSafe for WrappedJsonWebKey
impl Send for WrappedJsonWebKey
impl Sync for WrappedJsonWebKey
impl Unpin for WrappedJsonWebKey
impl UnwindSafe for WrappedJsonWebKey
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