Trait poem_openapi::types::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§
sourcefn to_header(&self) -> Option<HeaderValue>
fn to_header(&self) -> Option<HeaderValue>
Convert this value to HeaderValue
.