Struct malwaredb_types::doc::pdf::PDF
source · pub struct PDF<'a> {
pub version: Option<f32>,
pub pages: u32,
pub title: Option<String>,
pub author: Option<String>,
pub creation_date: Option<DateTime<Utc>>,
pub has_javascript: bool,
pub has_form: bool,
pub contents: &'a [u8],
}
Expand description
A struct representing Portable Document Format (PDF) files
Fields§
§version: Option<f32>
Version of the PDF spec
pages: u32
Number of pages in the document
title: Option<String>
Document title, if available
Document author, if available
creation_date: Option<DateTime<Utc>>
Creation date, if available
has_javascript: bool
Contains Javascript
has_form: bool
Has a From
contents: &'a [u8]
The array containing the raw bytes used to parse this program
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PDF<'a>
impl<'a> Send for PDF<'a>
impl<'a> Sync for PDF<'a>
impl<'a> Unpin for PDF<'a>
impl<'a> UnwindSafe for PDF<'a>
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