[−][src]Enum http_sig::Header
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.
Methods
impl Header
[src]
pub fn as_str(&self) -> &str
[src]
Returns the string representation of the header, as it will appear in the HTTP signature.
Trait Implementations
impl Clone for Header
[src]
impl Debug for Header
[src]
impl Eq for Header
[src]
impl From<HeaderName> for Header
[src]
fn from(other: HeaderName) -> Self
[src]
impl From<PseudoHeader> for Header
[src]
fn from(other: PseudoHeader) -> Self
[src]
impl FromStr for Header
[src]
type Err = InvalidHeaderName
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Header, Self::Err>
[src]
impl Ord for Header
[src]
fn cmp(&self, other: &Header) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Header> for Header
[src]
impl PartialOrd<Header> for Header
[src]
fn partial_cmp(&self, other: &Header) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Header
[src]
impl StructuralPartialEq for Header
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,