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§
source§impl<'a> DocumentFile for PDF<'a>
impl<'a> DocumentFile for PDF<'a>
Author of the document
source§fn has_javascript(&self) -> bool
fn has_javascript(&self) -> bool
If the document has Javascript (PDF)
source§impl<'a> SpecimenFile for PDF<'a>
impl<'a> SpecimenFile for PDF<'a>
Auto Trait Implementations§
impl<'a> Freeze for PDF<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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