Trait ToJwk

Source
pub trait ToJwk {
    type Error;

    // Required method
    fn to_jwk(&self) -> Result<Jwk, Self::Error>;
}
Expand description

Helper trait to convert an arbitrary key type to Jwk.

Required Associated Types§

Source

type Error

Error type used

Required Methods§

Source

fn to_jwk(&self) -> Result<Jwk, Self::Error>

Converts instance to Jwk.

Implementations on Foreign Types§

Source§

impl ToJwk for Ed25519KeyPair

Source§

type Error = Infallible

Source§

fn to_jwk(&self) -> Result<Jwk, <Ed25519KeyPair as ToJwk>::Error>

Source§

impl ToJwk for PublicKey

Source§

type Error = Error

Source§

fn to_jwk(&self) -> Result<Jwk, <PublicKey as ToJwk>::Error>

Implementors§