pub struct EmailNotifier { /* private fields */ }
Expand description
Email notifier
Implementations§
Source§impl EmailNotifier
impl EmailNotifier
Sourcepub fn new(config: EmailConfig) -> Result<Self>
pub fn new(config: EmailConfig) -> Result<Self>
Create a new email notifier
Sourcepub fn send(&self, email_report: &EmailReport) -> Result<()>
pub fn send(&self, email_report: &EmailReport) -> Result<()>
Send email report
Sourcepub fn send_execution_report(
&self,
report: &ExecutionReport,
recipients: Vec<String>,
include_pdf: bool,
) -> Result<()>
pub fn send_execution_report( &self, report: &ExecutionReport, recipients: Vec<String>, include_pdf: bool, ) -> Result<()>
Generate and send execution report
Auto Trait Implementations§
impl Freeze for EmailNotifier
impl RefUnwindSafe for EmailNotifier
impl Send for EmailNotifier
impl Sync for EmailNotifier
impl Unpin for EmailNotifier
impl UnwindSafe for EmailNotifier
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