[−][src]Enum trapmail::MailBody
An email body.
Mail bodies should be 7-bit ASCII (which is a subset of UTF-8), but there is no guarantee that clients/callers send valid data.
Upon creation, the body is parsed and stored as one of either variant, this allows the JSON serialization to be ideally human-readable, if valid UTF8 is used (i.e. one can have a quick look at mail contents in a text editor).
Variants
Utf8(String)
A valid UTF8-formatted mail.
A mail containing non-UTF8 characters.
Trait Implementations
impl Debug for MailBody
[src]
impl<'de> Deserialize<'de> for MailBody
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for MailBody
[src]
impl Serialize for MailBody
[src]
Auto Trait Implementations
impl RefUnwindSafe for MailBody
impl Send for MailBody
impl Sync for MailBody
impl Unpin for MailBody
impl UnwindSafe for MailBody
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,