pub struct OutboundDraft<State> {
pub to: Vec<String>,
pub cc: Vec<String>,
pub bcc: Vec<String>,
pub subject: String,
pub body: String,
pub in_reply_to: Option<String>,
pub references: Vec<String>,
pub reply_all: bool,
/* private fields */
}Fields§
§to: Vec<String>§cc: Vec<String>§bcc: Vec<String>§subject: String§body: String§in_reply_to: Option<String>§references: Vec<String>§reply_all: boolImplementations§
Source§impl OutboundDraft<Editing>
impl OutboundDraft<Editing>
pub fn new() -> Self
pub fn with_to(self, recipients: Vec<String>) -> Self
pub fn with_cc(self, recipients: Vec<String>) -> Self
pub fn with_bcc(self, recipients: Vec<String>) -> Self
pub fn with_subject(self, subject: impl Into<String>) -> Self
pub fn with_body(self, body: impl Into<String>) -> Self
pub fn with_in_reply_to(self, value: Option<String>) -> Self
pub fn with_references(self, values: Vec<String>) -> Self
pub fn with_reply_all(self, reply_all: bool) -> Self
pub fn ready(self) -> Result<OutboundDraft<ReadyToSend>, DraftValidationError>
Source§impl OutboundDraft<ReadyToSend>
impl OutboundDraft<ReadyToSend>
pub fn prepare_send(self) -> SendRequest<PendingConfirmation>
pub fn envelope_recipients(&self) -> Vec<String>
Trait Implementations§
Source§impl<State: Clone> Clone for OutboundDraft<State>
impl<State: Clone> Clone for OutboundDraft<State>
Source§fn clone(&self) -> OutboundDraft<State>
fn clone(&self) -> OutboundDraft<State>
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<State: Debug> Debug for OutboundDraft<State>
impl<State: Debug> Debug for OutboundDraft<State>
Source§impl Default for OutboundDraft<Editing>
impl Default for OutboundDraft<Editing>
Source§impl<State: PartialEq> PartialEq for OutboundDraft<State>
impl<State: PartialEq> PartialEq for OutboundDraft<State>
Source§fn eq(&self, other: &OutboundDraft<State>) -> bool
fn eq(&self, other: &OutboundDraft<State>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<State: Eq> Eq for OutboundDraft<State>
impl<State> StructuralPartialEq for OutboundDraft<State>
Auto Trait Implementations§
impl<State> Freeze for OutboundDraft<State>
impl<State> RefUnwindSafe for OutboundDraft<State>where
State: RefUnwindSafe,
impl<State> Send for OutboundDraft<State>where
State: Send,
impl<State> Sync for OutboundDraft<State>where
State: Sync,
impl<State> Unpin for OutboundDraft<State>where
State: Unpin,
impl<State> UnsafeUnpin for OutboundDraft<State>
impl<State> UnwindSafe for OutboundDraft<State>where
State: UnwindSafe,
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