[−][src]Struct brokaw::types::response::Headers
Netnews article headers
Note that per RFC 5322 headers may be repeated (a common example is X-Received for emails mirrored onto Newsgroups)
Implementations
impl Headers
[src]
pub fn len(&self) -> usize
[src]
The total number of headers
Note that this may be more than the number of keys as headers may be repeated
pub fn is_empty(&self) -> bool
[src]
Returns true if there are no headers
pub fn get(&self, key: impl AsRef<str>) -> Option<&Header>
[src]
Get a header by name
pub fn iter(&self) -> Iter
[src]
An iterator over the headers
Trait Implementations
impl Clone for Headers
[src]
impl Debug for Headers
[src]
impl Eq for Headers
[src]
impl PartialEq<Headers> for Headers
[src]
impl StructuralEq for Headers
[src]
impl StructuralPartialEq for Headers
[src]
Auto Trait Implementations
impl RefUnwindSafe for Headers
impl Send for Headers
impl Sync for Headers
impl Unpin for Headers
impl UnwindSafe for Headers
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<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,