pub struct JwkPublicKey {
pub kty: String,
pub alg: String,
pub use: Option<String>,
pub n: Option<String>,
pub e: Option<String>,
pub crv: Option<String>,
pub x: Option<String>,
pub y: Option<String>,
}Expand description
A representation of a public key in JSON Web Key (JWK) format.
Fields§
§kty: StringKey type (e.g., “RSA”, “EC”, “OKP”).
alg: StringAlgorithm identifier (e.g., “RS256”, “ES256”, “EdDSA”).
use: Option<String>Intended use of the key (typically “sig” for signing).
n: Option<String>RSA modulus (n).
e: Option<String>RSA public exponent (e).
crv: Option<String>Curve name for EC/OKP keys (e.g., “P-256”, “Ed25519”).
x: Option<String>X coordinate for EC/OKP keys.
y: Option<String>Y coordinate for EC keys.
Trait Implementations§
Source§impl Clone for JwkPublicKey
impl Clone for JwkPublicKey
Source§fn clone(&self) -> JwkPublicKey
fn clone(&self) -> JwkPublicKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JwkPublicKey
impl Debug for JwkPublicKey
Source§impl<'de> Deserialize<'de> for JwkPublicKey
impl<'de> Deserialize<'de> for JwkPublicKey
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
Auto Trait Implementations§
impl Freeze for JwkPublicKey
impl RefUnwindSafe for JwkPublicKey
impl Send for JwkPublicKey
impl Sync for JwkPublicKey
impl Unpin for JwkPublicKey
impl UnsafeUnpin for JwkPublicKey
impl UnwindSafe for JwkPublicKey
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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