pub struct JsonWebKey {
pub kid: String,
pub use: String,
pub alg: String,
pub crv: Option<String>,
pub kty: KeyType,
}Expand description
A JSON web key https://www.iana.org/assignments/jose/jose.xhtml used to verify signed JSON web tokens.
Fields§
§kid: StringThe ID of this key.
use: StringThe usage of this key. Should be sig.
alg: StringThe algorithm this key uses.
crv: Option<String>The curve ID for elliptic keys.
kty: KeyTypeThe type of the key and associated parameters.
Trait Implementations§
Source§impl Clone for JsonWebKey
impl Clone for JsonWebKey
Source§fn clone(&self) -> JsonWebKey
fn clone(&self) -> JsonWebKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JsonWebKey
impl Debug for JsonWebKey
Source§impl<'de> Deserialize<'de> for JsonWebKey
impl<'de> Deserialize<'de> for JsonWebKey
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<&VerifyingKey> for JsonWebKey
impl From<&VerifyingKey> for JsonWebKey
Source§fn from(key: &VerifyingKey) -> Self
fn from(key: &VerifyingKey) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JsonWebKey
impl RefUnwindSafe for JsonWebKey
impl Send for JsonWebKey
impl Sync for JsonWebKey
impl Unpin for JsonWebKey
impl UnwindSafe for JsonWebKey
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