pub struct Meta {
pub title: Option<String>,
pub subject: Option<String>,
pub description: Option<String>,
pub initial_creator: Option<String>,
pub last_editor: Option<String>,
pub created: Option<String>,
pub modified: Option<String>,
pub generator: Option<String>,
pub keywords: Vec<String>,
}Expand description
A document’s metadata, as far as a window shows it.
Every field is optional because every field is optional in the format. The
whole part is optional too, and a document with no meta.xml gives back the
default of this.
Fields§
§title: Option<String>dc:title, which a window shows in preference to the file name when the
document carries one.
subject: Option<String>dc:subject.
description: Option<String>dc:description.
initial_creator: Option<String>meta:initial-creator, who made the document.
last_editor: Option<String>dc:creator, who last changed it. ODF uses the Dublin Core term for the
last editor rather than the author, which is the opposite of what the
word suggests.
created: Option<String>meta:creation-date, as written: an ISO 8601 timestamp, kept as text
because nothing here does arithmetic on it and a date library is a
dependency this crate would otherwise not have.
modified: Option<String>dc:date, when it was last changed.
generator: Option<String>meta:generator, the application that wrote it.
keywords: Vec<String>Every meta:keyword, in order.
Implementations§
Trait Implementations§
impl Eq for Meta
impl StructuralPartialEq for Meta
Auto Trait Implementations§
impl Freeze for Meta
impl RefUnwindSafe for Meta
impl Send for Meta
impl Sync for Meta
impl Unpin for Meta
impl UnsafeUnpin for Meta
impl UnwindSafe for Meta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.