poem_openapi::types

Trait ToHeader

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ToHeader for IpAddr

Source§

impl ToHeader for IpNet

Source§

impl ToHeader for bool

Source§

impl ToHeader for f32

Source§

impl ToHeader for f64

Source§

impl ToHeader for i8

Source§

impl ToHeader for i16

Source§

impl ToHeader for i32

Source§

impl ToHeader for i64

Source§

impl ToHeader for u8

Source§

impl ToHeader for u16

Source§

impl ToHeader for u32

Source§

impl ToHeader for u64

Source§

impl ToHeader for usize

Source§

impl ToHeader for String

Source§

impl ToHeader for Ipv4Addr

Source§

impl ToHeader for Ipv6Addr

Source§

impl ToHeader for Duration

Source§

impl ToHeader for ObjectId

Source§

impl ToHeader for Uri

Source§

impl ToHeader for Duration

Source§

impl ToHeader for Ipv4Net

Source§

impl ToHeader for Ipv6Net

Source§

impl ToHeader for Regex

Source§

impl ToHeader for Decimal

Source§

impl ToHeader for Url

Source§

impl ToHeader for Uuid

Source§

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

Source§

impl<T: ToHeader> ToHeader for &T

Source§

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

Source§

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

Implementors§