#[non_exhaustive]pub enum DocDate {
Raw(String),
Parsed(PdfDate),
}Expand description
A document date entry. The writer can either round-trip a raw string
(already in PDF date syntax) or format a parsed PdfDate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Raw(String)
Raw string the producer issued — passed through verbatim. Used when the input is already in PDF date format and round-tripping the bytes preserves precision and timezone offset exactly.
Parsed(PdfDate)
Parsed structural form. Reserved for future phases that
normalise dates; Phase 1 stores everything as Raw.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DocDate
impl RefUnwindSafe for DocDate
impl Send for DocDate
impl Sync for DocDate
impl Unpin for DocDate
impl UnsafeUnpin for DocDate
impl UnwindSafe for DocDate
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