Trait malwaredb_types::doc::DocumentFile

source ·
pub trait DocumentFile {
    // Required methods
    fn pages(&self) -> u32;
    fn author(&self) -> Option<String>;
    fn title(&self) -> Option<String>;
    fn has_javascript(&self) -> bool;
    fn has_form(&self) -> bool;
    fn creation_time(&self) -> Option<DateTime<Utc>>;
    fn modification_time(&self) -> Option<DateTime<Utc>>;
}
Expand description

Common functions for document file types

Required Methods§

source

fn pages(&self) -> u32

Number of pages

source

fn author(&self) -> Option<String>

Author of the document

source

fn title(&self) -> Option<String>

Title of the document

source

fn has_javascript(&self) -> bool

If the document has Javascript (PDF)

source

fn has_form(&self) -> bool

If the document has a fillable form (PDF)

source

fn creation_time(&self) -> Option<DateTime<Utc>>

Creation timestamp of the document, if found

source

fn modification_time(&self) -> Option<DateTime<Utc>>

Modification timestamp of the document, if found

Implementors§

source§

impl<'a> DocumentFile for Office95<'a>

source§

impl<'a> DocumentFile for PDF<'a>

source§

impl<'a> DocumentFile for Rtf<'a>