pub struct Attachment {
pub part: Part,
pub name: String,
}Expand description
Fields§
§part: Part§name: StringImplementations§
Source§impl Attachment
impl Attachment
pub fn new(mail: Mail, idx: PartIndex) -> Result<Attachment, VomitError>
pub fn new_from_parsed( mail: Mail, idx: PartIndex, part: &ParsedMail<'_>, ) -> Result<Attachment, VomitError>
pub fn index(&self) -> &PartIndex
pub fn abs_file_path(&self) -> String
pub fn virtual_path(&self) -> String
pub fn mimetype(&self) -> &str
Trait Implementations§
Source§impl AsRef<Part> for Attachment
impl AsRef<Part> for Attachment
Source§impl Clone for Attachment
impl Clone for Attachment
Source§fn clone(&self) -> Attachment
fn clone(&self) -> Attachment
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 Attachment
impl Debug for Attachment
Source§impl From<Attachment> for Part
impl From<Attachment> for Part
Source§fn from(a: Attachment) -> Self
fn from(a: Attachment) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Attachment
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin 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