pub struct DraftContent {
pub subject: String,
pub content: String,
pub to: Vec<String>,
pub cc: Vec<String>,
pub bcc: Vec<String>,
pub acting_sender_id: Option<i64>,
pub schedule: Option<DeliverySchedule>,
}Expand description
The whole of what a draft carries. HEY revises a draft from the whole of it, so a
caller edits by reading the draft, changing fields and sending everything back: empty
recipients remove them, and a None schedule clears one already set.
Fields§
§subject: StringThe subject line.
content: StringThe body, as Trix HTML.
to: Vec<String>The addresses the draft goes to.
cc: Vec<String>The addresses copied on it.
bcc: Vec<String>The addresses copied on it without the others seeing.
acting_sender_id: Option<i64>The identity the draft is saved — and ultimately delivered — as. None resolves
the client’s default sender. A caller who chose an alternate identity carries it
on every revision, since a revision that leaves it out hands the draft back to
the default one.
schedule: Option<DeliverySchedule>When HEY delivers the draft on its own. None is a draft that waits to be sent.
Trait Implementations§
Source§impl Clone for DraftContent
impl Clone for DraftContent
Source§fn clone(&self) -> DraftContent
fn clone(&self) -> DraftContent
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 DraftContent
impl Debug for DraftContent
Source§impl Default for DraftContent
impl Default for DraftContent
Source§fn default() -> DraftContent
fn default() -> DraftContent
Returns the “default value” for a type. Read more
Source§impl PartialEq for DraftContent
impl PartialEq for DraftContent
impl StructuralPartialEq for DraftContent
Auto Trait Implementations§
impl Freeze for DraftContent
impl RefUnwindSafe for DraftContent
impl Send for DraftContent
impl Sync for DraftContent
impl Unpin for DraftContent
impl UnsafeUnpin for DraftContent
impl UnwindSafe for DraftContent
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