Enum mail_core::error::OtherValidationError
source · 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
sourceimpl Debug for OtherValidationError
impl Debug for OtherValidationError
sourceimpl Display for OtherValidationError
impl Display for OtherValidationError
sourceimpl Fail for OtherValidationError
impl Fail for OtherValidationError
sourcefn 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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moresourceimpl From<OtherValidationError> for HeaderValidationError
impl From<OtherValidationError> for HeaderValidationError
sourcefn from(oe: OtherValidationError) -> Self
fn from(oe: OtherValidationError) -> Self
Converts to this type from the input type.
sourceimpl From<OtherValidationError> for MailError
impl From<OtherValidationError> for MailError
sourcefn from(oe: OtherValidationError) -> Self
fn from(oe: OtherValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for OtherValidationError
impl Send for OtherValidationError
impl Sync for OtherValidationError
impl Unpin for OtherValidationError
impl UnwindSafe for OtherValidationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more