pub struct UpdateDraft {
pub to: Option<Vec<String>>,
pub cc: Option<Vec<String>>,
pub bcc: Option<Vec<String>>,
pub subject: Option<String>,
pub text: Option<String>,
pub html: Option<String>,
pub add_labels: Option<Vec<String>>,
pub remove_labels: Option<Vec<String>>,
pub reply_to: Option<Vec<String>>,
pub add_attachments: Vec<SendAttachment>,
pub remove_attachments: Vec<String>,
pub send_at: Option<String>,
}Expand description
Request body for update_draft. Every field is optional;
omitted fields are left unchanged on the server. Pass Some(vec![])
to clear a recipient field; pass None to leave it alone.
Fields§
§to: Option<Vec<String>>Primary recipients.
cc: Option<Vec<String>>Carbon-copy recipients.
bcc: Option<Vec<String>>Blind-carbon-copy recipients.
subject: Option<String>Subject line.
text: Option<String>Plain-text body.
html: Option<String>HTML body.
add_labels: Option<Vec<String>>Labels to add.
remove_labels: Option<Vec<String>>Labels to remove.
reply_to: Option<Vec<String>>Reply-To addresses to replace; Some(vec![]) clears them.
add_attachments: Vec<SendAttachment>Attachments to add to the draft.
remove_attachments: Vec<String>Attachment ids to remove from the draft.
send_at: Option<String>Schedule send at this RFC 3339 timestamp.
Trait Implementations§
Source§impl Clone for UpdateDraft
impl Clone for UpdateDraft
Source§impl Debug for UpdateDraft
impl Debug for UpdateDraft
Source§impl Default for UpdateDraft
impl Default for UpdateDraft
Auto Trait Implementations§
impl Freeze for UpdateDraft
impl RefUnwindSafe for UpdateDraft
impl Send for UpdateDraft
impl Sync for UpdateDraft
impl Unpin for UpdateDraft
impl UnsafeUnpin for UpdateDraft
impl UnwindSafe for UpdateDraft
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