#[non_exhaustive]pub struct Email {
pub to: String,
pub subject: String,
pub html: String,
pub text: Option<String>,
}Expand description
One message, rendered: who it goes to and what it says. The sender is the Mailer’s.
#[non_exhaustive]: built with Email::new, so cc or reply_to later break no one.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.to: String§subject: String§html: String§text: Option<String>The plain-text alternative; without one the message is HTML only.
Implementations§
Trait Implementations§
impl Eq for Email
impl StructuralPartialEq for Email
Auto Trait Implementations§
impl Freeze for Email
impl RefUnwindSafe for Email
impl Send for Email
impl Sync for Email
impl Unpin for Email
impl UnsafeUnpin for Email
impl UnwindSafe for Email
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