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 send_at: Option<String>,
}Expand description
Request body for [Client::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.
send_at: Option<String>Schedule send at this RFC 3339 timestamp.
Trait Implementations§
Source§impl Clone for UpdateDraft
impl Clone for UpdateDraft
Source§fn clone(&self) -> UpdateDraft
fn clone(&self) -> UpdateDraft
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 UpdateDraft
impl Debug for UpdateDraft
Source§impl Default for UpdateDraft
impl Default for UpdateDraft
Source§fn default() -> UpdateDraft
fn default() -> UpdateDraft
Returns the “default value” for a type. Read more
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