Trait email::ToHeader [−][src]
pub trait ToHeader { fn to_header(value: Self) -> ParsingResult<String>; }
Trait for converting from a Rust type into a Header value.
Required Methods
fn to_header(value: Self) -> ParsingResult<String>
Turn the value
into a String suitable for being used in
a message header.
Returns None if the value cannot be stringified.
Implementations on Foreign Types
impl ToHeader for String
[src]
impl ToHeader for String
fn to_header(value: String) -> ParsingResult<String>
[src]
fn to_header(value: String) -> ParsingResult<String>
impl<'a> ToHeader for &'a str
[src]
impl<'a> ToHeader for &'a str
fn to_header(value: &'a str) -> ParsingResult<String>
[src]
fn to_header(value: &'a str) -> ParsingResult<String>
Implementors
impl ToHeader for MimeContentTypeHeader