pub struct ProtectedHeader {
pub alg: String,
pub jwk: Option<Jwk>,
pub kid: Option<String>,
pub nonce: String,
pub url: String,
pub crit: Option<Vec<String>>,
}Expand description
Represents the protected header of an ACME JWS request.
Deliberately not deny_unknown_fields: RFC 8555 §6.2 enumerates the
fields it expects, but silently ignoring an extra member costs nothing and
refusing one would reject clients over a harmless addition. crit is the
exception — see the field below.
Fields§
§alg: String§jwk: Option<Jwk>§kid: Option<String>§nonce: String§url: String§crit: Option<Vec<String>>Header extensions the sender marks as critical (RFC 7515 §4.1.11).
This server implements no critical extension, so every value here is unrecognized and the JWS must be rejected — which is why the field is parsed at all: ignoring it would silently accept a request whose sender demanded we understand something we do not.
Trait Implementations§
Source§impl Debug for ProtectedHeader
impl Debug for ProtectedHeader
Source§impl<'de> Deserialize<'de> for ProtectedHeader
impl<'de> Deserialize<'de> for ProtectedHeader
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 ProtectedHeader
impl RefUnwindSafe for ProtectedHeader
impl Send for ProtectedHeader
impl Sync for ProtectedHeader
impl Unpin for ProtectedHeader
impl UnsafeUnpin for ProtectedHeader
impl UnwindSafe for ProtectedHeader
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