Struct lettre::SendableEmail
source · pub struct SendableEmail { /* private fields */ }
Expand description
Sendable email structure
Implementations
sourceimpl SendableEmail
impl SendableEmail
pub fn new(
envelope: Envelope,
message_id: String,
message: Vec<u8>
) -> SendableEmail
pub fn new_with_reader(
envelope: Envelope,
message_id: String,
message: Box<dyn Read + Send>
) -> SendableEmail
pub fn envelope(&self) -> &Envelope
pub fn message_id(&self) -> &str
pub fn message(self) -> Message ⓘ
pub fn message_to_string(self) -> Result<String, Error>
Auto Trait Implementations
impl !RefUnwindSafe for SendableEmail
impl Send for SendableEmail
impl !Sync for SendableEmail
impl Unpin for SendableEmail
impl !UnwindSafe for SendableEmail
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more