pub struct Header {
pub alg: Algorithm,
pub enc: Option<EncryptionAlgorithm>,
pub kid: Option<String>,
pub typ: Type,
}Expand description
A JSON web algorithm header that precedes a JWE or JWS.
Fields§
§alg: AlgorithmFor JWEs, the algorithm used to encrypt the content encryption key (CEK).
Only algorithms supported fully on Key Vault are supported.
enc: Option<EncryptionAlgorithm>For JWEs, the algorithm used to encrypt content with the content encryption key (CEK).
kid: Option<String>The ID of the key in Key Vault used for Header::alg.
typ: TypeThe type of the payload following this header.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Header
impl<'de> Deserialize<'de> for Header
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 Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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