pub struct DraftEnvelope {
pub to: String,
pub subject: String,
pub body_html: String,
pub in_reply_to: Option<String>,
pub thread_id: Option<String>,
pub body_text: Option<String>,
}Expand description
The content of a draft message to be created.
Fields§
§to: StringRecipient address(es).
subject: StringSubject line.
body_html: StringHTML body. Plain text is derived from this if the provider requires it.
in_reply_to: Option<String>Message-ID of the original message being replied to (for threading).
thread_id: Option<String>Provider thread identifier (for Gmail/Outlook thread association).
body_text: Option<String>Plain-text alternative body. If omitted, plugins derive it from body_html.
Trait Implementations§
Source§impl Clone for DraftEnvelope
impl Clone for DraftEnvelope
Source§fn clone(&self) -> DraftEnvelope
fn clone(&self) -> DraftEnvelope
Returns a duplicate of the value. Read more
1.0.0 · 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 DraftEnvelope
impl Debug for DraftEnvelope
Source§impl<'de> Deserialize<'de> for DraftEnvelope
impl<'de> Deserialize<'de> for DraftEnvelope
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
Source§impl PartialEq for DraftEnvelope
impl PartialEq for DraftEnvelope
Source§impl Serialize for DraftEnvelope
impl Serialize for DraftEnvelope
impl StructuralPartialEq for DraftEnvelope
Auto Trait Implementations§
impl Freeze for DraftEnvelope
impl RefUnwindSafe for DraftEnvelope
impl Send for DraftEnvelope
impl Sync for DraftEnvelope
impl Unpin for DraftEnvelope
impl UnsafeUnpin for DraftEnvelope
impl UnwindSafe for DraftEnvelope
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