pub struct Attachment {
pub path: PathBuf,
pub mime: Option<String>,
pub description: Option<String>,
pub name: Option<String>,
pub inline: bool,
pub unlink: bool,
}Expand description
A file named in an Attach: pseudo-header of the draft.
Fields§
§path: PathBuf§mime: Option<String>Content-type override (compose menu ctrl+t); guessed from the extension otherwise.
description: Option<String>§name: Option<String>mutt’s rename-attachment: the filename the part is sent under,
when not the file’s own. @name="..." on the line.
inline: boolmutt’s toggle-disposition: Content-Disposition inline rather
than attachment. @inline on the line.
unlink: boolmutt’s toggle-unlink: the file goes once the message has been
sent. @unlink on the line.
Implementations§
Source§impl Attachment
impl Attachment
Auto Trait Implementations§
impl Freeze for Attachment
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnsafeUnpin for Attachment
impl UnwindSafe for Attachment
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