pub struct JwkSerialize<'s, K: ToJwk> { /* private fields */ }Expand description
A wrapper type for serializing a JWK using serde
Implementations§
Source§impl<'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§
Auto Trait Implementations§
impl<'s, K> Freeze for JwkSerialize<'s, K>
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§
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