pub struct MessageBuilder { /* private fields */ }
Expand description
The MessageBuilder
type, for drafting Outlook email messages.
Implementations§
Source§impl MessageBuilder
impl MessageBuilder
Sourcepub fn with_subject<S>(self, subj: S) -> Self
pub fn with_subject<S>(self, subj: S) -> Self
Adds a subject to the email.
This should only be called once per MessageBuilder
instance.
Sourcepub fn with_recipient<S>(self, to: S) -> Self
pub fn with_recipient<S>(self, to: S) -> Self
Adds a recipient to the email.
Sourcepub fn with_recipient_cc<S>(self, cc: S) -> Self
pub fn with_recipient_cc<S>(self, cc: S) -> Self
Adds a CC recipient to the email.
Sourcepub fn with_recipient_bcc<S>(self, bcc: S) -> Self
pub fn with_recipient_bcc<S>(self, bcc: S) -> Self
Adds a BCC recipient to the email.
Sourcepub fn with_body<S>(self, body: S) -> Self
pub fn with_body<S>(self, body: S) -> Self
Adds a body to the email.
This should only be called once per MessageBuilder
instance.
Sourcepub fn with_attachment<S>(self, file: S) -> Self
pub fn with_attachment<S>(self, file: S) -> Self
Adds an attachment to the email.
This should only be called once per MessageBuilder
instance,
because Outlook’s command-line switches only supports attaching
a single file per invocation.
Trait Implementations§
Source§impl Clone for MessageBuilder
impl Clone for MessageBuilder
Source§fn clone(&self) -> MessageBuilder
fn clone(&self) -> MessageBuilder
Returns a copy 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 MessageBuilder
impl Debug for MessageBuilder
Source§impl Default for MessageBuilder
impl Default for MessageBuilder
Source§fn default() -> MessageBuilder
fn default() -> MessageBuilder
Returns the “default value” for a type. Read more
Source§impl PartialEq for MessageBuilder
impl PartialEq for MessageBuilder
impl Eq for MessageBuilder
impl StructuralPartialEq for MessageBuilder
Auto Trait Implementations§
impl Freeze for MessageBuilder
impl RefUnwindSafe for MessageBuilder
impl Send for MessageBuilder
impl Sync for MessageBuilder
impl Unpin for MessageBuilder
impl UnwindSafe for MessageBuilder
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