pub struct OutgoingAttachment {
pub filename: String,
pub content_type: String,
pub data: Vec<u8>,
}Expand description
An attachment to include in an outgoing email.
§References
- RFC 2183 (Content-Disposition: attachment)
- RFC 2045 (Content-Transfer-Encoding: base64)
Fields§
§filename: StringFilename for the Content-Disposition header.
content_type: StringMIME content type (e.g., "application/pdf").
data: Vec<u8>Raw file data — will be base64-encoded in the message.
Trait Implementations§
Source§impl Clone for OutgoingAttachment
impl Clone for OutgoingAttachment
Source§fn clone(&self) -> OutgoingAttachment
fn clone(&self) -> OutgoingAttachment
Returns a duplicate 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 OutgoingAttachment
impl Debug for OutgoingAttachment
Source§impl PartialEq for OutgoingAttachment
impl PartialEq for OutgoingAttachment
impl Eq for OutgoingAttachment
impl StructuralPartialEq for OutgoingAttachment
Auto Trait Implementations§
impl Freeze for OutgoingAttachment
impl RefUnwindSafe for OutgoingAttachment
impl Send for OutgoingAttachment
impl Sync for OutgoingAttachment
impl Unpin for OutgoingAttachment
impl UnsafeUnpin for OutgoingAttachment
impl UnwindSafe for OutgoingAttachment
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