Struct askar_crypto::jwk::JwkSerialize
source · [−]pub struct JwkSerialize<'s, K: ToJwk> { /* private fields */ }
Expand description
A wrapper type for serializing a JWK using serde
Implementations
sourceimpl<'s, K: ToJwk> JwkSerialize<'s, K>
impl<'s, K: ToJwk> JwkSerialize<'s, K>
sourcepub fn new(key: &'s K, mode: JwkEncoderMode) -> Self
pub fn new(key: &'s K, mode: JwkEncoderMode) -> Self
Create a new instance
sourcepub fn as_thumbprint(key: &'s K) -> Self
pub fn as_thumbprint(key: &'s K) -> Self
Create a new instance for encoding a JWK thumbprint
Trait Implementations
sourceimpl<'s, K: Debug + ToJwk> Debug for JwkSerialize<'s, K>
impl<'s, K: Debug + ToJwk> Debug for JwkSerialize<'s, K>
Auto Trait Implementations
impl<'s, K> RefUnwindSafe for JwkSerialize<'s, K> where
K: RefUnwindSafe,
impl<'s, K> Send for JwkSerialize<'s, K> where
K: Sync,
impl<'s, K> Sync for JwkSerialize<'s, K> where
K: Sync,
impl<'s, K> Unpin for JwkSerialize<'s, K>
impl<'s, K> UnwindSafe for JwkSerialize<'s, K> where
K: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more