pub struct Attachment {
pub name: String,
pub data: Vec<u8>,
pub kind: AttachmentKind,
}Expand description
A reconstructed attachment: suggested name + raw bytes.
Fields§
§name: StringFile name (from CDFILEHEADER) or a synthesized image_N.ext.
data: Vec<u8>Reassembled bytes. May be empty for file variants whose segment encoding is not yet decoded (the name is still recovered).
kind: AttachmentKindImage vs file.
Trait Implementations§
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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