pub struct Protected {
pub crit: Option<Vec<String>>,
pub nonce: Option<Bytes>,
pub b64: bool,
pub oth: Unprotected,
}Expand description
The JWS Protected Header
Fields§
§crit: Option<Vec<String>>RFC 7517 Section 4.1.11
nonce: Option<Bytes>RFC 8555 Section 6.5.2
b64: boolRFC 7797 Section 3
oth: UnprotectedOther values that may appear in the protected header.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Protected
impl<'de> Deserialize<'de> for Protected
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 Protected
impl RefUnwindSafe for Protected
impl Send for Protected
impl Sync for Protected
impl Unpin for Protected
impl UnwindSafe for Protected
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