pub struct Draft {Show 20 fields
pub draft_id: String,
pub inbox_id: Option<String>,
pub client_id: Option<String>,
pub to: Vec<String>,
pub cc: Vec<String>,
pub bcc: Vec<String>,
pub reply_to: Vec<String>,
pub subject: Option<String>,
pub preview: Option<String>,
pub text: Option<String>,
pub html: Option<String>,
pub labels: Vec<String>,
pub in_reply_to: Option<String>,
pub forward_of: Option<String>,
pub references: Vec<String>,
pub send_status: Option<String>,
pub send_at: Option<String>,
pub created_at: Option<String>,
pub updated_at: 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.
client_id: Option<String>Your reference id from creation, when set.
to: Vec<String>Primary recipients.
cc: Vec<String>Carbon-copy recipients.
bcc: Vec<String>Blind-carbon-copy recipients.
reply_to: Vec<String>Reply-To addresses, when set.
subject: Option<String>Subject line.
preview: Option<String>Short plain-text excerpt (list responses).
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.
forward_of: Option<String>Message id this draft is forwarding.
references: Vec<String>References chain this draft continues, when replying.
send_status: Option<String>Send state once the draft is queued: scheduled, sending, or failed.
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).
attachments: Vec<Attachment>Attachments on the draft.