#[non_exhaustive]pub struct ParsedDocument {
pub version: PdfVersion,
pub catalog: Option<ObjectKey>,
pub objects: ObjectStore,
pub trailers: Vec<Trailer>,
pub parse_facts: Vec<ParseFact>,
pub warnings: Vec<ValidationWarning>,
}Expand description
Parsed PDF document produced by Parser.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.version: PdfVersionParsed PDF header version.
catalog: Option<ObjectKey>Catalog object referenced by the latest trailer, when available.
objects: ObjectStoreIndirect object store.
trailers: Vec<Trailer>Parsed trailers.
parse_facts: Vec<ParseFact>Parser facts retained for validation.
warnings: Vec<ValidationWarning>Recoverable parser warnings.
Implementations§
Source§impl ParsedDocument
impl ParsedDocument
Sourcepub fn is_encrypted(&self) -> bool
pub fn is_encrypted(&self) -> bool
Returns true when the document trailer declares encryption.
Trait Implementations§
Source§impl Clone for ParsedDocument
impl Clone for ParsedDocument
Source§fn clone(&self) -> ParsedDocument
fn clone(&self) -> ParsedDocument
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 moreSource§impl Debug for ParsedDocument
impl Debug for ParsedDocument
Source§impl<'de> Deserialize<'de> for ParsedDocument
impl<'de> Deserialize<'de> for ParsedDocument
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ParsedDocument
impl RefUnwindSafe for ParsedDocument
impl Send for ParsedDocument
impl Sync for ParsedDocument
impl Unpin for ParsedDocument
impl UnsafeUnpin for ParsedDocument
impl UnwindSafe for ParsedDocument
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