pub trait ToHeader: Type {
    // Required method
    fn to_header(&self) -> Option<HeaderValue>;
}
Expand description

Represents a type that can converted to HTTP header.

Required Methods§

source

fn to_header(&self) -> Option<HeaderValue>

Convert this value to HeaderValue.

Implementations on Foreign Types§

source§

impl ToHeader for f64

source§

impl ToHeader for i32

source§

impl ToHeader for u16

source§

impl ToHeader for ObjectId

source§

impl ToHeader for usize

source§

impl ToHeader for Uuid

source§

impl ToHeader for Ipv4Addr

source§

impl ToHeader for u32

source§

impl ToHeader for IpAddr

source§

impl ToHeader for IpNet

source§

impl ToHeader for Ipv6Net

source§

impl ToHeader for Url

source§

impl ToHeader for f32

source§

impl ToHeader for Decimal

source§

impl ToHeader for String

source§

impl<T: ToHeader> ToHeader for Box<T>

source§

impl<T: ToHeader> ToHeader for Arc<T>

source§

impl ToHeader for u64

source§

impl ToHeader for Ipv4Net

source§

impl ToHeader for Uri

source§

impl<T: ToHeader> ToHeader for Option<T>

source§

impl ToHeader for Duration

source§

impl ToHeader for u8

source§

impl ToHeader for bool

source§

impl ToHeader for Ipv6Addr

source§

impl<T: ToHeader> ToHeader for &T

source§

impl ToHeader for i8

source§

impl ToHeader for Regex

source§

impl ToHeader for i16

source§

impl ToHeader for i64

Implementors§