Struct askar_crypto::jwk::JwkParts
source · [−]pub struct JwkParts<'a> {
pub kty: &'a str,
pub kid: OptAttr<'a>,
pub alg: OptAttr<'a>,
pub crv: OptAttr<'a>,
pub x: OptAttr<'a>,
pub y: OptAttr<'a>,
pub d: OptAttr<'a>,
pub k: OptAttr<'a>,
pub key_ops: Option<KeyOpsSet>,
}
Expand description
A parsed JWK
Fields
kty: &'a str
Key type
kid: OptAttr<'a>
Key ID
alg: OptAttr<'a>
Key algorithm
crv: OptAttr<'a>
Curve type
x: OptAttr<'a>
Curve key public x coordinate
y: OptAttr<'a>
Curve key public y coordinate
d: OptAttr<'a>
Curve key private key bytes
k: OptAttr<'a>
Used by symmetric keys like AES
key_ops: Option<KeyOpsSet>
Recognized key operations
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for JwkParts<'de>
impl<'de> Deserialize<'de> for JwkParts<'de>
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
impl<'a> Copy for JwkParts<'a>
impl<'a> Eq for JwkParts<'a>
impl<'a> StructuralEq for JwkParts<'a>
impl<'a> StructuralPartialEq for JwkParts<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for JwkParts<'a>
impl<'a> Send for JwkParts<'a>
impl<'a> Sync for JwkParts<'a>
impl<'a> Unpin for JwkParts<'a>
impl<'a> UnwindSafe for JwkParts<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
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