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: OctetKeyPairType
Key type value for an Octet Key Pair
curve: EllipticCurve
The “crv” (curve) parameter identifies the cryptographic curve used with the key.
x: String
The “x” parameter contains the base64 encoded public key
Trait Implementations
sourceimpl Clone for OctetKeyPairParameters
impl Clone for OctetKeyPairParameters
sourcefn clone(&self) -> OctetKeyPairParameters
fn clone(&self) -> OctetKeyPairParameters
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OctetKeyPairParameters
impl Debug for OctetKeyPairParameters
sourceimpl Default for OctetKeyPairParameters
impl Default for OctetKeyPairParameters
sourcefn default() -> OctetKeyPairParameters
fn default() -> OctetKeyPairParameters
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for OctetKeyPairParameters
impl<'de> Deserialize<'de> for OctetKeyPairParameters
sourcefn 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
sourceimpl Hash for OctetKeyPairParameters
impl Hash for OctetKeyPairParameters
sourceimpl PartialEq<OctetKeyPairParameters> for OctetKeyPairParameters
impl PartialEq<OctetKeyPairParameters> for OctetKeyPairParameters
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &OctetKeyPairParameters) -> bool
fn ne(&self, other: &OctetKeyPairParameters) -> bool
This method tests for !=
.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more