pub struct SendMessage {
pub to: Vec<String>,
pub cc: Vec<String>,
pub bcc: Vec<String>,
pub subject: Option<String>,
pub text: Option<String>,
pub html: Option<String>,
pub labels: Vec<String>,
}Expand description
Request body for Client::send_message. At least one recipient in to
and one of text/html are required by the API.
Fields§
§to: Vec<String>Primary recipients.
cc: Vec<String>Carbon-copy recipients.
bcc: Vec<String>Blind-carbon-copy recipients.
subject: Option<String>Subject line.
text: Option<String>Plain-text body.
html: Option<String>HTML body (send both for multipart).
labels: Vec<String>Labels to attach to the sent message.
Trait Implementations§
Source§impl Clone for SendMessage
impl Clone for SendMessage
Source§fn clone(&self) -> SendMessage
fn clone(&self) -> SendMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SendMessage
impl Debug for SendMessage
Source§impl Default for SendMessage
impl Default for SendMessage
Source§fn default() -> SendMessage
fn default() -> SendMessage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SendMessage
impl RefUnwindSafe for SendMessage
impl Send for SendMessage
impl Sync for SendMessage
impl Unpin for SendMessage
impl UnsafeUnpin for SendMessage
impl UnwindSafe for SendMessage
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