Struct jsonwebtoken::jwk::OctetKeyPairParameters
source · pub struct OctetKeyPairParameters {
pub key_type: OctetKeyPairType,
pub curve: EllipticCurve,
pub x: String,
}Expand description
Parameters for an Octet Key Pair
Fields§
§key_type: OctetKeyPairTypeKey type value for an Octet Key Pair
curve: EllipticCurveThe “crv” (curve) parameter identifies the cryptographic curve used with the key.
x: StringThe “x” parameter contains the base64 encoded public key
Trait Implementations§
source§impl Clone for OctetKeyPairParameters
impl Clone for OctetKeyPairParameters
source§fn clone(&self) -> OctetKeyPairParameters
fn clone(&self) -> OctetKeyPairParameters
Returns a copy 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 OctetKeyPairParameters
impl Debug for OctetKeyPairParameters
source§impl Default for OctetKeyPairParameters
impl Default for OctetKeyPairParameters
source§fn default() -> OctetKeyPairParameters
fn default() -> OctetKeyPairParameters
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for OctetKeyPairParameters
impl<'de> Deserialize<'de> for OctetKeyPairParameters
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 Hash for OctetKeyPairParameters
impl Hash for OctetKeyPairParameters
source§impl PartialEq<OctetKeyPairParameters> for OctetKeyPairParameters
impl PartialEq<OctetKeyPairParameters> for OctetKeyPairParameters
source§fn eq(&self, other: &OctetKeyPairParameters) -> bool
fn eq(&self, other: &OctetKeyPairParameters) -> bool
This method tests for
self and other values to be equal, and is used
by ==.