pub struct CreateDraft {Show 13 fields
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 in_reply_to: Option<String>,
pub reply_to: Vec<String>,
pub reply_all: Option<bool>,
pub forward_of: Option<String>,
pub labels: Vec<String>,
pub send_at: Option<String>,
pub client_id: Option<String>,
}Expand description
Request body for create_draft. At least one recipient or a
reply/forward-of reference 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.
in_reply_to: Option<String>Message id this draft is in reply to.
reply_to: Vec<String>Reply-To addresses to set on the sent message.
reply_all: Option<bool>When creating a reply draft, set true to reply to all recipients of the referenced message.
forward_of: Option<String>Message id this draft is a forward of.
labels: Vec<String>Labels to attach to the draft.
send_at: Option<String>Schedule send at this RFC 3339 timestamp.
client_id: Option<String>Your own idempotency/reference id for this draft.
Trait Implementations§
Source§impl Clone for CreateDraft
impl Clone for CreateDraft
Source§impl Debug for CreateDraft
impl Debug for CreateDraft
Source§impl Default for CreateDraft
impl Default for CreateDraft
Auto Trait Implementations§
impl Freeze for CreateDraft
impl RefUnwindSafe for CreateDraft
impl Send for CreateDraft
impl Sync for CreateDraft
impl Unpin for CreateDraft
impl UnsafeUnpin for CreateDraft
impl UnwindSafe for CreateDraft
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