pub enum Header {
Pseudo(PseudoHeader),
Normal(HeaderName),
}
Expand description
A header which can be incorporated into a HTTP signature.
Headers can either be normal HTTP headers or special “pseudo-headers” used for including additional information into a signature.
Variants§
Pseudo(PseudoHeader)
This header is one of the special “pseudo-headers”
Normal(HeaderName)
This header is a normal HTTP heaeder.
Implementations§
Trait Implementations§
source§impl From<HeaderName> for Header
impl From<HeaderName> for Header
source§fn from(other: HeaderName) -> Self
fn from(other: HeaderName) -> Self
Converts to this type from the input type.
source§impl From<PseudoHeader> for Header
impl From<PseudoHeader> for Header
source§fn from(other: PseudoHeader) -> Self
fn from(other: PseudoHeader) -> Self
Converts to this type from the input type.
source§impl Ord for Header
impl Ord for Header
source§impl PartialEq<Header> for Header
impl PartialEq<Header> for Header
source§impl PartialOrd<Header> for Header
impl PartialOrd<Header> for Header
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Header
impl StructuralEq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.