pub struct JWKDecodingKey {
pub alg: Option<Algorithm>,
pub kid: Option<String>,
pub key: DecodingKey,
}
Fields§
§alg: Option<Algorithm>
§kid: Option<String>
§key: DecodingKey
Implementations§
Source§impl JWKDecodingKey
impl JWKDecodingKey
pub fn new( kid: Option<String>, alg: Option<Algorithm>, key: DecodingKey, ) -> JWKDecodingKey
pub fn new_rsa( kid: Option<String>, alg: Option<Algorithm>, n: &str, e: &str, ) -> Result<JWKDecodingKey>
pub fn decoding_key(&self) -> &DecodingKey
Trait Implementations§
Source§impl Clone for JWKDecodingKey
impl Clone for JWKDecodingKey
Source§fn clone(&self) -> JWKDecodingKey
fn clone(&self) -> JWKDecodingKey
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for JWKDecodingKey
impl Debug for JWKDecodingKey
Auto Trait Implementations§
impl Freeze for JWKDecodingKey
impl RefUnwindSafe for JWKDecodingKey
impl Send for JWKDecodingKey
impl Sync for JWKDecodingKey
impl Unpin for JWKDecodingKey
impl UnwindSafe for JWKDecodingKey
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