pub struct CreateDraft {
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_all: Option<bool>,
pub forward_of: Option<String>,
pub labels: Vec<String>,
pub send_at: Option<String>,
}Expand description
Request body for [Client::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_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.
Trait Implementations§
Source§impl Clone for CreateDraft
impl Clone for CreateDraft
Source§fn clone(&self) -> CreateDraft
fn clone(&self) -> CreateDraft
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 CreateDraft
impl Debug for CreateDraft
Source§impl Default for CreateDraft
impl Default for CreateDraft
Source§fn default() -> CreateDraft
fn default() -> CreateDraft
Returns the “default value” for a type. Read more
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