pub struct MailAttachment {
pub file_name: String,
pub content_type: String,
pub content: Vec<u8>,
pub disposition: MailAttachmentDisposition,
pub content_id: Option<String>,
}Fields§
§file_name: String§content_type: String§content: Vec<u8>§disposition: MailAttachmentDisposition§content_id: Option<String>Implementations§
Source§impl MailAttachment
impl MailAttachment
pub fn attachment( file_name: impl Into<String>, content_type: impl Into<String>, content: impl Into<Vec<u8>>, ) -> Result<Self, MailError>
pub fn inline( file_name: impl Into<String>, content_type: impl Into<String>, content: impl Into<Vec<u8>>, content_id: impl Into<String>, ) -> Result<Self, MailError>
Trait Implementations§
Source§impl Clone for MailAttachment
impl Clone for MailAttachment
Source§fn clone(&self) -> MailAttachment
fn clone(&self) -> MailAttachment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MailAttachment
impl Debug for MailAttachment
impl Eq for MailAttachment
Source§impl PartialEq for MailAttachment
impl PartialEq for MailAttachment
impl StructuralPartialEq for MailAttachment
Auto Trait Implementations§
impl Freeze for MailAttachment
impl RefUnwindSafe for MailAttachment
impl Send for MailAttachment
impl Sync for MailAttachment
impl Unpin for MailAttachment
impl UnsafeUnpin for MailAttachment
impl UnwindSafe for MailAttachment
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