pub struct JsonWebKey {Show 19 fields
pub alg: Option<Algorithm>,
pub crv: Option<String>,
pub d: Option<String>,
pub dp: Option<String>,
pub dq: Option<String>,
pub e: Option<String>,
pub kid: Option<String>,
pub kty: Option<KeyType>,
pub n: Option<String>,
pub other: Option<HashMap<String, Value>>,
pub p: Option<String>,
pub q: Option<String>,
pub qi: Option<String>,
pub use: Option<String>,
pub x: Option<String>,
pub x5c: Option<Vec<String>>,
pub x5t: Option<String>,
pub x5t_hash_s256: Option<String>,
pub y: Option<String>,
}
Expand description
JsonWebKey : A JSON Web Key as defined by <a href="https:tools.ietf.orghtmlrfc7517#section-4">RFC 7517 JSON Web Key (JWK) Section 4 and <a href="https:tools.ietf.orghtmlrfc7518">RFC 7518 JSON Web Algorithms (JWA).
Fields§
§alg: Option<Algorithm>
§crv: Option<String>
§d: Option<String>
§dp: Option<String>
§dq: Option<String>
§e: Option<String>
§kid: Option<String>
§kty: Option<KeyType>
§n: Option<String>
§other: Option<HashMap<String, Value>>
§p: Option<String>
§q: Option<String>
§qi: Option<String>
§use: Option<String>
§x: Option<String>
§x5c: Option<Vec<String>>
§x5t: Option<String>
§x5t_hash_s256: Option<String>
§y: Option<String>
Implementations§
Source§impl JsonWebKey
impl JsonWebKey
Sourcepub fn new() -> JsonWebKey
pub fn new() -> JsonWebKey
A JSON Web Key as defined by <a href="https:tools.ietf.orghtmlrfc7517#section-4">RFC 7517 JSON Web Key (JWK) Section 4 and <a href="https:tools.ietf.orghtmlrfc7518">RFC 7518 JSON Web Algorithms (JWA).
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 Default for JsonWebKey
impl Default for JsonWebKey
Source§fn default() -> JsonWebKey
fn default() -> JsonWebKey
Returns the “default value” for a type. Read more
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 PartialEq for JsonWebKey
impl PartialEq for JsonWebKey
Source§impl Serialize for JsonWebKey
impl Serialize for JsonWebKey
impl StructuralPartialEq for JsonWebKey
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