@@ -1,3 +1,5 @@
|
|||||||
|
//! Email addresses
|
||||||
|
|
||||||
#[cfg(feature = "serde")]
|
#[cfg(feature = "serde")]
|
||||||
mod serde;
|
mod serde;
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
//! Error type for email messages
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
error::Error as StdError,
|
error::Error as StdError,
|
||||||
fmt::{self, Display, Formatter},
|
fmt::{self, Display, Formatter},
|
||||||
|
|||||||
@@ -265,7 +265,8 @@ use crate::{
|
|||||||
|
|
||||||
const DEFAULT_MESSAGE_ID_DOMAIN: &str = "localhost";
|
const DEFAULT_MESSAGE_ID_DOMAIN: &str = "localhost";
|
||||||
|
|
||||||
pub trait EmailFormat {
|
/// Something that can be formatted as an email message
|
||||||
|
trait EmailFormat {
|
||||||
// Use a writer?
|
// Use a writer?
|
||||||
fn format(&self, out: &mut Vec<u8>);
|
fn format(&self, out: &mut Vec<u8>);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ use crate::Transport;
|
|||||||
|
|
||||||
#[allow(missing_debug_implementations)]
|
#[allow(missing_debug_implementations)]
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
|
/// Transport using the SMTP protocol
|
||||||
pub struct SmtpTransport {
|
pub struct SmtpTransport {
|
||||||
#[cfg(feature = "r2d2")]
|
#[cfg(feature = "r2d2")]
|
||||||
inner: Pool<SmtpClient>,
|
inner: Pool<SmtpClient>,
|
||||||
|
|||||||
Reference in New Issue
Block a user