pub struct Jwk {
pub kid: SmallString<36>,
pub use: KeyUse,
pub algorithm: Algorithm,
pub crypto: JwkCrypto,
}Expand description
a JSON Web Key https://www.rfc-editor.org/rfc/rfc7517 https://www.rfc-editor.org/rfc/rfc8037 Note: Jwk are not validated during deserialization
Fields§
§kid: SmallString<36>§use: KeyUse§algorithm: Algorithm§crypto: JwkCryptoTrait Implementations§
Source§impl<'de> Deserialize<'de> for Jwk
impl<'de> Deserialize<'de> for Jwk
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 From<&Ed25519PublicKey> for Jwk
impl From<&Ed25519PublicKey> for Jwk
Source§fn from(key: &Ed25519PublicKey) -> Self
fn from(key: &Ed25519PublicKey) -> Self
Converts to this type from the input type.
Source§impl From<&Ed25519SecretKey> for Jwk
impl From<&Ed25519SecretKey> for Jwk
Source§fn from(key: &Ed25519SecretKey) -> Self
fn from(key: &Ed25519SecretKey) -> Self
Converts to this type from the input type.
Source§impl From<&HmacSha256Key> for Jwk
impl From<&HmacSha256Key> for Jwk
Source§fn from(key: &HmacSha256Key) -> Self
fn from(key: &HmacSha256Key) -> Self
Converts to this type from the input type.
Source§impl From<&HmacSha512Key> for Jwk
impl From<&HmacSha512Key> for Jwk
Source§fn from(key: &HmacSha512Key) -> Self
fn from(key: &HmacSha512Key) -> Self
Converts to this type from the input type.
Source§impl From<&P256PublicKey> for Jwk
impl From<&P256PublicKey> for Jwk
Source§fn from(key: &P256PublicKey) -> Self
fn from(key: &P256PublicKey) -> Self
Converts to this type from the input type.
Source§impl From<&P256SecretKey> for Jwk
impl From<&P256SecretKey> for Jwk
Source§fn from(key: &P256SecretKey) -> Self
fn from(key: &P256SecretKey) -> Self
Converts to this type from the input type.
Source§impl From<&RsaPublicKey> for Jwk
impl From<&RsaPublicKey> for Jwk
Source§fn from(key: &RsaPublicKey) -> Self
fn from(key: &RsaPublicKey) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Jwk
impl RefUnwindSafe for Jwk
impl Send for Jwk
impl Sync for Jwk
impl Unpin for Jwk
impl UnsafeUnpin for Jwk
impl UnwindSafe for Jwk
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