pub struct Attachment {
pub info: AttachmentInfo,
pub text: Option<String>,
pub bytes: Option<Vec<u8>>,
}Expand description
A fetched attachment.
Fields§
§info: AttachmentInfoThe part that was fetched.
text: Option<String>Extracted text, for a text-like part.
bytes: Option<Vec<u8>>Raw bytes, only when the part is small enough to return inline.
Trait Implementations§
Source§impl Clone for Attachment
impl Clone for Attachment
Source§impl Debug for Attachment
impl Debug for Attachment
impl Eq for Attachment
Source§impl PartialEq for Attachment
impl PartialEq for Attachment
impl StructuralPartialEq for Attachment
Auto Trait Implementations§
impl Forget for Attachment
impl Freeze for Attachment
impl Move for Attachment
impl RefUnwindSafe for Attachment
impl Send for Attachmentwhere
RawVecInner: Send,
impl Sync for Attachmentwhere
RawVecInner: Sync,
impl Unpin for Attachment
impl UnsafeUnpin for Attachment
impl UnwindSafe for Attachmentwhere
RawVecInner: UnwindSafe,
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