azure_core::headers

Trait AsHeaders

source
pub trait AsHeaders {
    type Iter: Iterator<Item = (HeaderName, HeaderValue)>;

    // Required method
    fn as_headers(&self) -> Self::Iter;
}
Expand description

A trait for converting a type into request headers

Required Associated Types§

Required Methods§

source

fn as_headers(&self) -> Self::Iter

Implementations on Foreign Types§

source§

impl<T> AsHeaders for Option<T>

source§

type Iter = <T as AsHeaders>::Iter

source§

fn as_headers(&self) -> Self::Iter

Implementors§