pub struct Draft {Show 17 fields
pub draft_id: String,
pub inbox_id: Option<String>,
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>,
pub in_reply_to: Option<String>,
pub reply_all: Option<bool>,
pub forward_of: Option<String>,
pub send_at: Option<String>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub from: Option<String>,
pub attachments: Vec<Attachment>,
}Expand description
A draft message, as the API returns it. List items are a subset of the full get-draft shape; every optional field defaults so both parse.
Fields§
§draft_id: StringUnique draft id.
inbox_id: Option<String>Inbox the draft belongs to.
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.
labels: Vec<String>Labels on the draft.
in_reply_to: Option<String>Message id this draft is replying to.
reply_all: Option<bool>Whether the draft was created as a reply-all.
forward_of: Option<String>Message id this draft is forwarding.
send_at: Option<String>Scheduled send time (RFC 3339).
created_at: Option<String>Timestamp the draft was created (RFC 3339).
updated_at: Option<String>Timestamp the draft was last updated (RFC 3339).
from: Option<String>Sender address (available in get responses).
attachments: Vec<Attachment>Attachments on the draft.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Draft
impl<'de> Deserialize<'de> for Draft
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Draft
impl RefUnwindSafe for Draft
impl Send for Draft
impl Sync for Draft
impl Unpin for Draft
impl UnsafeUnpin for Draft
impl UnwindSafe for Draft
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