Struct lettre::stub::StubEmailTransport
[−]
[src]
pub struct StubEmailTransport { /* fields omitted */ }
This transport logs the message envelope and returns the given response
Methods
impl StubEmailTransport
[src]
pub fn new(response: StubResult) -> StubEmailTransport
[src]
Creates a new transport that always returns the given response
pub fn new_positive() -> StubEmailTransport
[src]
Creates a new transport that always returns a success response
Trait Implementations
impl Debug for StubEmailTransport
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for StubEmailTransport
[src]
fn clone(&self) -> StubEmailTransport
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for StubEmailTransport
[src]
impl<'a, T: Read + 'a> EmailTransport<'a, T, StubResult> for StubEmailTransport
[src]
fn send<U: SendableEmail<'a, T>>(&mut self, email: &'a U) -> StubResult
[src]
Sends the email