pub struct EmbeddedFile {
pub name: String,
pub filename: Option<String>,
pub unicode_filename: Option<String>,
pub description: Option<String>,
pub relationship: Option<AfRelationship>,
pub mime_type: Option<String>,
pub size: Option<u64>,
pub creation_date: Option<PdfDate>,
pub mod_date: Option<PdfDate>,
pub checksum: Option<Vec<u8>>,
pub stream_obj_num: u32,
pub stream_gen_num: u16,
}Expand description
One embedded file.
Fields§
§name: StringDisplay name (the key from the embedded-files name tree).
filename: Option<String>/F filename (legacy ASCII).
unicode_filename: Option<String>/UF unicode filename.
description: Option<String>/Desc description.
relationship: Option<AfRelationship>/AFRelationship — author’s hint about how this attachment
relates to the host document.
mime_type: Option<String>/Subtype on the embedded-file stream — typically a MIME
type encoded as a PDF name (e.g. text/csv → /text#2Fcsv).
size: Option<u64>/Params /Size — original byte length of the file.
creation_date: Option<PdfDate>/Params /CreationDate.
mod_date: Option<PdfDate>/Params /ModDate.
checksum: Option<Vec<u8>>/Params /CheckSum — typically MD5 of the original content.
stream_obj_num: u32Embedded-file stream object number.
stream_gen_num: u16Embedded-file stream generation number.
Trait Implementations§
Source§impl Clone for EmbeddedFile
impl Clone for EmbeddedFile
Source§fn clone(&self) -> EmbeddedFile
fn clone(&self) -> EmbeddedFile
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 EmbeddedFile
impl RefUnwindSafe for EmbeddedFile
impl Send for EmbeddedFile
impl Sync for EmbeddedFile
impl Unpin for EmbeddedFile
impl UnsafeUnpin for EmbeddedFile
impl UnwindSafe for EmbeddedFile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more