Struct biscuit::jwk::OctetKeyPairParameters
source · pub struct OctetKeyPairParameters {
pub key_type: OctetKeyPairType,
pub curve: EllipticCurve,
pub x: Vec<u8>,
pub d: Option<Vec<u8>>,
}
Expand description
Parameters for an Octet Key Pair
Fields§
§key_type: OctetKeyPairType
Key type value for an Octet Key Pair
curve: EllipticCurve
The “crv” (curve) parameter identifies the cryptographic curve used with the key.
x: Vec<u8>
The “x” parameter contains the base64 encoded public key
d: Option<Vec<u8>>
The “d” parameter contains the base64 encoded private 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 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 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 ==
.source§impl Serialize for OctetKeyPairParameters
impl Serialize for OctetKeyPairParameters
impl Eq for OctetKeyPairParameters
impl StructuralEq for OctetKeyPairParameters
impl StructuralPartialEq for OctetKeyPairParameters
Auto Trait Implementations§
impl RefUnwindSafe for OctetKeyPairParameters
impl Send for OctetKeyPairParameters
impl Sync for OctetKeyPairParameters
impl Unpin for OctetKeyPairParameters
impl UnwindSafe for OctetKeyPairParameters
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.