#[non_exhaustive]pub struct Attachment {
pub file_name: String,
pub key: Option<String>,
pub in_associated_files: bool,
pub relationship: Option<AfRelationship>,
pub description: Option<String>,
pub mime_type: Option<String>,
pub size: Option<u64>,
pub checksum: Option<[u8; 16]>,
pub creation_date: Option<String>,
pub modification_date: Option<String>,
pub data: Vec<u8>,
}Expand description
An embedded file: its file specification and its decoded content.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.file_name: StringThe file name: the file specification’s /UF, else its /F, else its key in the
/EmbeddedFiles name tree.
key: Option<String>Its key in the /EmbeddedFiles name tree, when it is listed there.
in_associated_files: boolWhether it is listed in the catalog’s /AF (associated files).
relationship: Option<AfRelationship>/AFRelationship.
description: Option<String>/Desc.
mime_type: Option<String>The MIME type of the embedded file stream (/Subtype), such as text/xml.
size: Option<u64>/Params /Size, verified against the decoded content.
checksum: Option<[u8; 16]>/Params /CheckSum, the MD5 digest, verified against the decoded content. Written
as the 16 bytes of the digest (ISO 32000-2) or, as some producers do, as its 32
hexadecimal digits: both are read.
creation_date: Option<String>/Params /CreationDate, as written (a PDF date string).
modification_date: Option<String>/Params /ModDate, as written (a PDF date string).
data: Vec<u8>The decoded content, byte for byte.
Trait Implementations§
Source§impl Clone for Attachment
impl Clone for Attachment
Source§fn clone(&self) -> Attachment
fn clone(&self) -> Attachment
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more