pub struct Attachment {
pub name: String,
pub description: Option<String>,
pub mime: Option<String>,
pub size: Option<u64>,
pub modified: Option<Date>,
pub relationship: Option<String>,
pub stream: Option<Stream>,
}Expand description
a file embedded in the document (7.11.4)
Fields§
§name: Stringthe file name (/UF, else /F)
description: Option<String>§mime: Option<String>/Subtype of the file stream: a MIME type (“text/xml”)
size: Option<u64>§modified: Option<Date>§relationship: Option<String>/AFRelationship (PDF/A-3, ZUGFeRD: Data, Source, Alternative, …)
stream: Option<Stream>the data: Document::decode(&stream)
Trait Implementations§
Source§impl Clone for Attachment
impl Clone for Attachment
Source§impl Debug for Attachment
impl Debug 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 Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnsafeUnpin for Attachmentwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<BTreeMap<Name, Object>> is !null: UnsafeUnpin,
PhantomData<ArcInner<BTreeMap<Name, Object>>>: UnsafeUnpin,
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