pub struct JweProtectedHeader {Show 15 fields
pub alg: JweAlg,
pub enc: JweEnc,
pub epk: Option<Jwk>,
pub jku: Option<Url>,
pub jwk: Option<Jwk>,
pub kid: Option<String>,
pub crit: Option<Vec<String>>,
pub typ: Option<String>,
pub cty: Option<String>,
pub x5u: Option<()>,
pub x5c: Option<Vec<String>>,
pub x5t: Option<()>,
pub x5t_s256: Option<()>,
pub ctx: Option<String>,
pub client_id: Option<String>,
}Expand description
A header that will be signed and embedded in the Jwe. For defined claims see the IANA JOSE Registry
Fields§
§alg: JweAlgThe key wrap/derivation algorithm in use protecting the payload key
enc: JweEncThe inner encryption of this JWE
epk: Option<Jwk>Ephemeral Public Key
jku: Option<Url>JWS Key Set URL
jwk: Option<Jwk>Embedded JWK
kid: Option<String>Key Identifier String
crit: Option<Vec<String>>Criticality of this header and processing it’s content
typ: Option<String>Type
cty: Option<String>Content
x5u: Option<()>X509 URL
x5c: Option<Vec<String>>X509 Chain
x5t: Option<()>X509 S1 Thumbprint
x5t_s256: Option<()>X509 S256 Thumbprint
ctx: Option<String>Context
client_id: Option<String>OAuth2 Extension - the client_id that issued this JWE
Trait Implementations§
Source§impl Clone for JweProtectedHeader
impl Clone for JweProtectedHeader
Source§fn clone(&self) -> JweProtectedHeader
fn clone(&self) -> JweProtectedHeader
Returns a duplicate 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 JweProtectedHeader
impl Debug for JweProtectedHeader
Source§impl Default for JweProtectedHeader
impl Default for JweProtectedHeader
Source§fn default() -> JweProtectedHeader
fn default() -> JweProtectedHeader
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JweProtectedHeader
impl<'de> Deserialize<'de> for JweProtectedHeader
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 for JweProtectedHeader
impl PartialEq for JweProtectedHeader
Source§impl Serialize for JweProtectedHeader
impl Serialize for JweProtectedHeader
impl StructuralPartialEq for JweProtectedHeader
Auto Trait Implementations§
impl Freeze for JweProtectedHeader
impl RefUnwindSafe for JweProtectedHeader
impl Send for JweProtectedHeader
impl Sync for JweProtectedHeader
impl Unpin for JweProtectedHeader
impl UnsafeUnpin for JweProtectedHeader
impl UnwindSafe for JweProtectedHeader
Blanket Implementations§
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