pub struct FileSpec {
pub filename: String,
pub description: Option<String>,
pub mime_type: Option<String>,
pub size: Option<usize>,
pub checksum: Option<Vec<u8>>,
pub creation_date: Option<String>,
pub mod_date: Option<String>,
pub ef_stream_ref: Option<IndirectRef>,
}Expand description
A parsed file specification (PDF FileSpec dictionary).
Fields§
§filename: StringThe filename (from /UF or /F).
description: Option<String>Optional description (/Desc).
mime_type: Option<String>MIME type (from the EF stream /Subtype, e.g. “application/pdf”).
size: Option<usize>Uncompressed file size in bytes (/Params -> /Size).
checksum: Option<Vec<u8>>MD5 checksum of the uncompressed data (/Params -> /CheckSum).
creation_date: Option<String>Creation date string (/Params -> /CreationDate).
mod_date: Option<String>Modification date string (/Params -> /ModDate).
ef_stream_ref: Option<IndirectRef>Reference to the embedded file stream object (/EF -> /F).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileSpec
impl RefUnwindSafe for FileSpec
impl Send for FileSpec
impl Sync for FileSpec
impl Unpin for FileSpec
impl UnsafeUnpin for FileSpec
impl UnwindSafe for FileSpec
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