pub struct IdentityHeader {
pub digest: String,
pub info: String,
pub algorithm: String,
pub passport_type: Option<String>,
pub extensions: Vec<(String, Option<String>)>,
}Expand description
A parsed RFC 8224 Identity header value.
Fields§
§digest: StringFull header.payload.signature or compact ..signature PASSporT.
info: StringCredential-reference URI from info.
algorithm: StringJWS algorithm. RFC 8224 defaults an absent parameter to ES256.
passport_type: Option<String>Mandatory PASSporT extension, if one was requested.
extensions: Vec<(String, Option<String>)>Unknown generic parameters retained in wire order.
Implementations§
Trait Implementations§
Source§impl Clone for IdentityHeader
impl Clone for IdentityHeader
Source§fn clone(&self) -> IdentityHeader
fn clone(&self) -> IdentityHeader
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 IdentityHeader
impl Debug for IdentityHeader
Source§impl PartialEq for IdentityHeader
impl PartialEq for IdentityHeader
Source§fn eq(&self, other: &IdentityHeader) -> bool
fn eq(&self, other: &IdentityHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TypedHeader for IdentityHeader
impl TypedHeader for IdentityHeader
Source§const NAME: HeaderName = HeaderName::Identity
const NAME: HeaderName = HeaderName::Identity
The header this type reads.
Source§fn decode(value: &[u8]) -> Result<Self, HeaderError>
fn decode(value: &[u8]) -> Result<Self, HeaderError>
Parse one header value. The value arrives unfolded and trimmed.
Source§const VALIDATE_LIST: bool = false
const VALIDATE_LIST: bool = false
Whether
Headers::typed_all must collect and validate the complete field before yielding. Read moreSource§fn decode_list(value: &[u8]) -> Result<Vec<Self>, HeaderError>
fn decode_list(value: &[u8]) -> Result<Vec<Self>, HeaderError>
Parse every value in one header row. Read more
Source§fn validate_list(_values: &[&Self]) -> Result<(), HeaderError>
fn validate_list(_values: &[&Self]) -> Result<(), HeaderError>
Validate all decoded values of this field across the complete message. Read more
impl Eq for IdentityHeader
impl StructuralPartialEq for IdentityHeader
Auto Trait Implementations§
impl Freeze for IdentityHeader
impl RefUnwindSafe for IdentityHeader
impl Send for IdentityHeader
impl Sync for IdentityHeader
impl Unpin for IdentityHeader
impl UnsafeUnpin for IdentityHeader
impl UnwindSafe for IdentityHeader
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