Trait mail::HeaderTryFrom

source ·
pub trait HeaderTryFrom<T>: Sized {
    fn try_from(val: T) -> Result<Self, ComponentCreationError>;
}
Expand description

Re-export of headers from mail-headers. Workaround for TryFrom,TryInto not being stable.

Required Methods

Implementors

This try from is for usability only, it is generally recommendet to use Disposition::inline()/::attachment() as it is type safe / compiler time checked, while this one isn’t