pub enum OtherValidationError {
ContentTypeHeaderGiven,
ContentTransferEncodingHeaderGiven,
SingleMultipartMixup,
InsertSinglepartContentTypeHeader,
MissingContentTypeHeader,
NoFrom,
}
Variants§
ContentTypeHeaderGiven
Non-multipart mail headers derive the Content-Type header from it’s body Resource
.
This error is returned if a Content-Type
header was given never the less.
ContentTransferEncodingHeaderGiven
Content-Transfer-Encoding
headers are always auto-generated
and can not be manually set.
SingleMultipartMixup
A non “multipart” media type was given as content type for a multipart mail.
InsertSinglepartContentTypeHeader
Inserting a Conent-Type
header into a singlepart body is not allowed.
In single-part bodies the Content-Type
header is always auto-generated
based on the actual body.
MissingContentTypeHeader
A multipart mail requires a Content-Type
header to be given.
NoFrom
A mail (top level, not in multipart) requires a From
header to be given.
Trait Implementations§
Source§impl Debug for OtherValidationError
impl Debug for OtherValidationError
Source§impl Display for OtherValidationError
impl Display for OtherValidationError
Source§impl Fail for OtherValidationError
impl Fail for OtherValidationError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl From<OtherValidationError> for HeaderValidationError
impl From<OtherValidationError> for HeaderValidationError
Source§fn from(oe: OtherValidationError) -> Self
fn from(oe: OtherValidationError) -> Self
Converts to this type from the input type.
Source§impl From<OtherValidationError> for MailError
impl From<OtherValidationError> for MailError
Source§fn from(oe: OtherValidationError) -> Self
fn from(oe: OtherValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OtherValidationError
impl RefUnwindSafe for OtherValidationError
impl Send for OtherValidationError
impl Sync for OtherValidationError
impl Unpin for OtherValidationError
impl UnwindSafe for OtherValidationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more