pub struct Annotation {
pub annot_type: AnnotationType,
pub bbox: BBox,
pub contents: Option<String>,
pub author: Option<String>,
pub date: Option<String>,
pub raw_subtype: String,
}Expand description
A PDF annotation extracted from a page.
Represents a single annotation with its type, bounding box, and optional metadata fields (contents, author, modification date).
Fields§
§annot_type: AnnotationTypeThe annotation type (parsed from /Subtype).
bbox: BBoxBounding box of the annotation on the page.
contents: Option<String>Text contents of the annotation (/Contents entry).
Author of the annotation (/T entry).
date: Option<String>Modification date (/M entry, raw PDF date string).
raw_subtype: StringRaw /Subtype name as it appears in the PDF.
Trait Implementations§
Source§impl Clone for Annotation
impl Clone for Annotation
Source§fn clone(&self) -> Annotation
fn clone(&self) -> Annotation
Returns a duplicate of the value. Read more
1.0.0 · 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 Annotation
impl Debug for Annotation
Source§impl PartialEq for Annotation
impl PartialEq for Annotation
impl StructuralPartialEq for Annotation
Auto Trait Implementations§
impl Freeze for Annotation
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnsafeUnpin for Annotation
impl UnwindSafe for Annotation
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