pub struct Message {
pub to: Vec<Address>,
pub cc: Vec<Address>,
pub bcc: Vec<Address>,
pub subject: String,
pub text: String,
pub html: String,
pub from: Option<Address>,
pub reply_to: Option<Address>,
}Expand description
A message to send.
Deserialised straight from the JSON a function hands the host, so the field names here are the ones a function author writes.
Fields§
§to: Vec<Address>Recipients. A bare string is accepted as a list of one.
cc: Vec<Address>§bcc: Vec<Address>§subject: String§text: StringPlain-text body. Send at least one of text and html.
html: StringHTML body.
from: Option<Address>Overrides [email] from for this message.
reply_to: Option<Address>Overrides [email] reply_to for this message.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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