pub struct XmpMetadata {
pub title: Option<String>,
pub creators: Vec<String>,
pub description: Option<String>,
pub subjects: Vec<String>,
pub keywords: Option<String>,
pub producer: Option<String>,
pub creator_tool: Option<String>,
pub create_date: Option<String>,
pub modify_date: Option<String>,
}Expand description
Common document metadata read from the XMP packet. Every field is optional;
producers populate an arbitrary subset, and a field may be present in XMP but
not in /Info (or vice-versa).
Fields§
§title: Option<String>dc:title — the document title (the x-default language alternative).
creators: Vec<String>dc:creator — the author(s), in order.
description: Option<String>dc:description — a description/abstract (the x-default alternative).
subjects: Vec<String>dc:subject — subject keywords/phrases.
keywords: Option<String>pdf:Keywords — the keyword string (the PDF-schema simple property).
producer: Option<String>pdf:Producer — the application that produced the PDF.
creator_tool: Option<String>xmp:CreatorTool — the application that authored the original document.
create_date: Option<String>xmp:CreateDate — creation timestamp (raw XMP/ISO-8601 date string).
modify_date: Option<String>xmp:ModifyDate — last-modification timestamp (raw date string).
Implementations§
Trait Implementations§
Source§impl Clone for XmpMetadata
impl Clone for XmpMetadata
Source§fn clone(&self) -> XmpMetadata
fn clone(&self) -> XmpMetadata
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 XmpMetadata
impl Debug for XmpMetadata
Source§impl Default for XmpMetadata
impl Default for XmpMetadata
Source§fn default() -> XmpMetadata
fn default() -> XmpMetadata
Returns the “default value” for a type. Read more
impl Eq for XmpMetadata
Source§impl PartialEq for XmpMetadata
impl PartialEq for XmpMetadata
Source§fn eq(&self, other: &XmpMetadata) -> bool
fn eq(&self, other: &XmpMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for XmpMetadata
Auto Trait Implementations§
impl Freeze for XmpMetadata
impl RefUnwindSafe for XmpMetadata
impl Send for XmpMetadata
impl Sync for XmpMetadata
impl Unpin for XmpMetadata
impl UnsafeUnpin for XmpMetadata
impl UnwindSafe for XmpMetadata
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